<commit_before>package org.wildfly.swarm.jolokia.runtime;

import java.util.ArrayList;
import java.util.List;

import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.container.runtime.AbstractServerConfiguration;
import org.wildfly.swarm.jolokia.JolokiaFraction;
import org.wildfly.swarm.undertow.WARArchive;

/**
 * @author <NAME>
 */
public class JolokiaConfiguration extends AbstractServerConfiguration<JolokiaFraction> {

    public JolokiaConfiguration() {
        super(JolokiaFraction.class);
    }

    @Override
    public JolokiaFraction defaultFraction() {
        System.err.println( "create default fraction for Jolokia" );
        return new JolokiaFraction();
    }

    @Override
    public List<Archive> getImplicitDeployments(JolokiaFraction fraction) {
        List<Archive> list =new ArrayList<>();
        JavaArchive war = null;
        try {
            war = Swarm.artifact("org.jolokia:jolokia-war:war:*");
            war.as(WARArchive.class).setContextRoot( fraction.context() );
            list.add(war);
        } catch (Exception e) {
            e.printStackTrace();

        }
        return list;
    }
}<commit_msg>Don't replace exceptions in *Configuration with an easy-to-miss println.   - Percolate them on up, and fail.  Fail hard.<commit_after>package org.wildfly.swarm.jolokia.runtime;

import java.util.ArrayList;
import java.util.List;

import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.container.runtime.AbstractServerConfiguration;
import org.wildfly.swarm.jolokia.JolokiaFraction;
import org.wildfly.swarm.undertow.WARArchive;

/**
 * @author <NAME>
 */
public class JolokiaConfiguration extends AbstractServerConfiguration<JolokiaFraction> {

    public JolokiaConfiguration() {
        super(JolokiaFraction.class);
    }

    @Override
    public JolokiaFraction defaultFraction() {
        System.err.println("create default fraction for Jolokia");
        return new JolokiaFraction();
    }

    @Override
    public List<Archive> getImplicitDeployments(JolokiaFraction fraction) throws Exception {
        List<Archive> list = new ArrayList<>();
        JavaArchive war = null;

        war = Swarm.artifact("org.jolokia:jolokia-war:war:*");
        war.as(WARArchive.class).setContextRoot(fraction.context());
        list.add(war);

        return list;
    }
}
{'fraction_non_alphanumeric': 0.1088950937375349, 'fraction_numerical': 0.0, 'mean_word_length': 3.5517241379310347, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2657205', 'n_tokens_mistral': 828, 'n_tokens_neox': 757, 'n_words': 141}