<commit_before>package com.izforge.izpack.core.container.filler;

import com.izforge.izpack.api.container.DependenciesFillerContainer;
import com.izforge.izpack.merge.resolve.ClassPathCrawler;
import com.izforge.izpack.merge.resolve.MergeableResolver;
import com.izforge.izpack.merge.resolve.PathResolver;
import org.picocontainer.Characteristics;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.parameters.ComponentParameter;

import java.io.IOException;
import java.util.HashMap;
import java.util.Properties;

/**
 * Fill containter with resolver dependencies
 *
 * @author <NAME>
 */
public class ResolverContainerFiller implements DependenciesFillerContainer
{
    public MutablePicoContainer fillContainer(MutablePicoContainer picoContainer)
    {
        return
                picoContainer
                        .addComponent("panelDependencies", getPanelDependencies())
                        .addComponent("mergeContent", HashMap.class, ComponentParameter.ZERO)
                        .as(Characteristics.USE_NAMES).addComponent(ClassPathCrawler.class)
                        .as(Characteristics.USE_NAMES).addComponent(PathResolver.class)
                        .as(Characteristics.USE_NAMES).addComponent(MergeableResolver.class)
                ;
    }

    private Properties getPanelDependencies()
    {
        Properties properties = new Properties();
        try
        {
            properties.load(ClassLoader.getSystemResourceAsStream("panelDependencies.properties"));
        }<commit_msg>getResource correction<commit_after>package com.izforge.izpack.core.container.filler;

import com.izforge.izpack.api.container.DependenciesFillerContainer;
import com.izforge.izpack.merge.resolve.ClassPathCrawler;
import com.izforge.izpack.merge.resolve.MergeableResolver;
import com.izforge.izpack.merge.resolve.PathResolver;
import org.picocontainer.Characteristics;
import org.picocontainer.MutablePicoContainer;
import org.picocontainer.parameters.ComponentParameter;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Properties;

/**
 * Fill containter with resolver dependencies
 *
 * @author <NAME>
 */
public class ResolverContainerFiller implements DependenciesFillerContainer
{
    public MutablePicoContainer fillContainer(MutablePicoContainer picoContainer)
    {
        return
                picoContainer
                        .addComponent("panelDependencies", getPanelDependencies())
                        .addComponent("mergeContent", HashMap.class, ComponentParameter.ZERO)
                        .as(Characteristics.USE_NAMES).addComponent(ClassPathCrawler.class)
                        .as(Characteristics.USE_NAMES).addComponent(PathResolver.class)
                        .as(Characteristics.USE_NAMES).addComponent(MergeableResolver.class)
                ;
    }

    private Properties getPanelDependencies()
    {
        Properties properties = new Properties();
        try
        {
            InputStream inStream = getClass().getResourceAsStream("/panelDependencies.properties");
            properties.load(inStream);
        }
{'fraction_non_alphanumeric': 0.08417721518987342, 'fraction_numerical': 0.0, 'mean_word_length': 3.2543741588156125, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6004819', 'n_tokens_mistral': 832, 'n_tokens_neox': 783, 'n_words': 120}