<commit_before>package hudson.plugins.checkstyle;

import static org.mockito.Mockito.*;
import hudson.plugins.analysis.test.AbstractEnglishLocaleTest;
import junit.framework.Assert;

import org.junit.Test;

/**
 * Tests the class {@link ResultSummary}.
 */
public class ResultSummaryTest extends AbstractEnglishLocaleTest {
    /**
     * Checks the text for no warnings in 0 files.
     */
    @Test
    public void test0WarningsIn0File() {
        checkSummaryText(0, 0, "Checkstyle: 0 warnings in 0 Checkstyle files.");
    }

    /**
     * Checks the text for no warnings in 1 file.
     */
    @Test
    public void test0WarningsIn1File() {
        checkSummaryText(0, 1, "Checkstyle: 0 warnings in 1 Checkstyle file.");
    }

    /**
     * Checks the text for no warnings in 5 files.
     */
    @Test
    public void test0WarningsIn5Files() {
        checkSummaryText(0, 5, "Checkstyle: 0 warnings in 5 Checkstyle files.");
    }

    /**
     * Checks the text for 1 warning in 2 files.
     */
    @Test
    public void test1WarningIn2Files() {
        checkSummaryText(1, 2, "Checkstyle: <a href=\"checkstyleResult\">1 warning</a> in 2 Checkstyle files.");
    }

    /**
     * Checks the text for 5 warnings in 1 file.
     */
    @Test
    public void test5WarningsIn1File() {
        checkSummaryText(5, 1, "Checkstyle: <a href=\"checkstyleResult\">5 warnings</a> in 1 Checkstyle file.");
    }<commit_msg>Changed result texts.<commit_after>package hudson.plugins.checkstyle;

import static org.mockito.Mockito.*;
import hudson.plugins.analysis.test.AbstractEnglishLocaleTest;
import junit.framework.Assert;

import org.junit.Test;

/**
 * Tests the class {@link ResultSummary}.
 */
public class ResultSummaryTest extends AbstractEnglishLocaleTest {
    /**
     * Checks the text for no warnings from 0 files.
     */
    @Test
    public void test0WarningsIn0File() {
        checkSummaryText(0, 0, "Checkstyle: 0 warnings from 0 Checkstyle files.");
    }

    /**
     * Checks the text for no warnings from 1 file.
     */
    @Test
    public void test0WarningsIn1File() {
        checkSummaryText(0, 1, "Checkstyle: 0 warnings from one Checkstyle file.");
    }

    /**
     * Checks the text for no warnings from 5 files.
     */
    @Test
    public void test0WarningsIn5Files() {
        checkSummaryText(0, 5, "Checkstyle: 0 warnings from 5 Checkstyle files.");
    }

    /**
     * Checks the text for 1 warning from 2 files.
     */
    @Test
    public void test1WarningIn2Files() {
        checkSummaryText(1, 2, "Checkstyle: <a href=\"checkstyleResult\">1 warning</a> from 2 Checkstyle files.");
    }

    /**
     * Checks the text for 5 warnings from 1 file.
     */
    @Test
    public void test5WarningsIn1File() {
        checkSummaryText(5, 1, "Checkstyle: <a href=\"checkstyleResult\">5 warnings</a> from one Checkstyle file.");
    }
{'fraction_non_alphanumeric': 0.11014593467685893, 'fraction_numerical': 0.02501737317581654, 'mean_word_length': 2.7486979166666665, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '677291', 'n_tokens_mistral': 887, 'n_tokens_neox': 847, 'n_words': 268}