<commit_before>/*
 * Copyright 2013-2015 <NAME> (<EMAIL> at gmail dot com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package com.google.code.sbt.compiler.sbt0139;

import com.google.code.sbt.compiler.api.CompilerLogger;

import xsbti.F0;
import xsbti.Logger;

/**
 * {@link CompilerLogger} wrapper implementing SBT Logger interface.
 * 
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class SBT0139Logger
    implements Logger
{

    private final static String MISLEADING_WARNING_MESSAGE = "Pruning sources from previous analysis, due to incompatible CompileSetup.";

    CompilerLogger compilerLogger;

    /**
     * Creates SBT Logger wrapper around given {@link CompilerLogger} implementation.
     * 
     * @param compilerLogger {@link CompilerLogger} delegate
     */
    public SBT0139Logger( CompilerLogger compilerLogger )
    {
        this.compilerLogger = compilerLogger;
    }

    /**
     * Send a message to the user in the <b>error</b> error level
     * if the <b>error</b> error level is enabled.
     *
     * @param msg message
     */
    @Override
    public void error( F0<String> msg )<commit_msg>Small checkstyle problem (source code formatting) fixed.<commit_after>/*
 * Copyright 2013-2015 <NAME> (<EMAIL> at g<EMAIL> dot com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package com.google.code.sbt.compiler.sbt0139;

import com.google.code.sbt.compiler.api.CompilerLogger;

import xsbti.F0;
import xsbti.Logger;

/**
 * {@link CompilerLogger} wrapper implementing SBT Logger interface.
 * 
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public class SBT0139Logger
    implements Logger
{

    private static final String MISLEADING_WARNING_MESSAGE =
        "Pruning sources from previous analysis, due to incompatible CompileSetup.";

    CompilerLogger compilerLogger;

    /**
     * Creates SBT Logger wrapper around given {@link CompilerLogger} implementation.
     * 
     * @param compilerLogger {@link CompilerLogger} delegate
     */
    public SBT0139Logger( CompilerLogger compilerLogger )
    {
        this.compilerLogger = compilerLogger;
    }

    /**
     * Send a message to the user in the <b>error</b> error level
     * if the <b>error</b> error level is enabled.
     *
     * @param msg message
     */
    @Override
    public void error( F0<String> msg )
{'fraction_non_alphanumeric': 0.0917458432304038, 'fraction_numerical': 0.015439429928741092, 'mean_word_length': 3.3753246753246753, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '3878665', 'n_tokens_mistral': 980, 'n_tokens_neox': 928, 'n_words': 352}