<commit_before>/*******************************************************************************
 * Copyright (c) 2014
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    <NAME> - initial API and implementation and/or initial documentation
 *******************************************************************************/
package org.splevo.fm.builder;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.eclipse.featuremodel.FeatureModel;
import org.junit.BeforeClass;
import org.junit.Test;
import org.splevo.fm.emffeaturemodel.builder.EMFFeatureModelBuilder;
import org.splevo.tests.SPLevoTestUtil;
import org.splevo.vpm.variability.VariationPointModel;

/**
 * Test to verify the functionality of the builder deriving a feature model from a variation point
 * model.
 */
public class EMFFeatureModelBuilderTest {

    /** The logger for this test class. */
    @SuppressWarnings("unused")
    private Logger logger = Logger.getLogger(EMFFeatureModelBuilderTest.class);

    /**
     * Prepare the test. Initializes a log4j logging environment.
     */
    @BeforeClass
    public static void setUp() {
        // set up a basic logging configuration for the test environment
        BasicConfigurator.resetConfiguration();
        BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%m%n")));
    }

    /**
     * Basic test to create a vpm and derive a feature model.
     *
     * @throws Exception
     *             Failed to read the variation point model.
     */
    @Test
    public void testBuildFeatureModel() throws Exception {

        VariationPointModel vpm = SPLevoTestUtil.loadGCDVPMModel();
<commit_msg>Minor checkstyle violation fix<commit_after>/*******************************************************************************
 * Copyright (c) 2014
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    <NAME> - initial API and implementation and/or initial documentation
 *******************************************************************************/
package org.splevo.fm.builder;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.eclipse.featuremodel.FeatureModel;
import org.junit.BeforeClass;
import org.junit.Test;
import org.splevo.fm.emffeaturemodel.builder.EMFFeatureModelBuilder;
import org.splevo.tests.SPLevoTestUtil;
import org.splevo.vpm.variability.VariationPointModel;

/**
 * Test to verify the functionality of the builder deriving a feature model from a variation point
 * model.
 */
public class EMFFeatureModelBuilderTest {

    /** The logger for this test class. */
    @SuppressWarnings("unused")
    private Logger logger = Logger.getLogger(EMFFeatureModelBuilderTest.class);

    /**
     * Prepare the test. Initializes a log4j logging environment.
     */
    @BeforeClass
    public static void setUp() {
        // set up a basic logging configuration for the test environment
        BasicConfigurator.resetConfiguration();
        BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%m%n")));
    }

    /**
     * Basic test to create a vpm and derive a feature model.
     *
     * @throws Exception
     *             Failed to read the variation point model.
     */
    @SuppressWarnings("deprecation")
    @Test
    public void testBuildFeatureModel() throws Exception {

        VariationPointModel vpm = SPLevoTestUtil.loadGCDVPMModel();

{'fraction_non_alphanumeric': 0.15481870229007633, 'fraction_numerical': 0.006202290076335878, 'mean_word_length': 4.082424242424242, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7664628', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1085, 'n_words': 320}