<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Fixie
{
    public class Suite
    {
        readonly Type[] candidateTypes;
        readonly Convention convention;

        public Suite(Convention convention, params Type[] candidateTypes)
        {
            this.candidateTypes = candidateTypes;
            this.convention = convention;
        }

        public void Execute(Listener listener)
        {
            foreach (var fixture in Fixtures)
                fixture.Execute(listener);
        }

        private IEnumerable<ClassFixture> Fixtures
        {
            get
            {
                return convention.FixtureClasses(candidateTypes)
                                 .Select(fixtureClass => new ClassFixture(fixtureClass, convention));
            }
        }
    }
}<commit_msg>Simplifies Suite implementation.<commit_after>﻿using System;

namespace Fixie
{
    public class Suite
    {
        readonly Type[] candidateTypes;
        readonly Convention convention;

        public Suite(Convention convention, params Type[] candidateTypes)
        {
            this.candidateTypes = candidateTypes;
            this.convention = convention;
        }

        public void Execute(Listener listener)
        {
            foreach (var fixtureClass in convention.FixtureClasses(candidateTypes))
            {
                var fixture = new ClassFixture(fixtureClass, convention);
                fixture.Execute(listener);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.06896551724137931, 'fraction_numerical': 0.0, 'mean_word_length': 1.8534322820037106, 'pattern_counts': {'":': 0, '<': 4, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6467382', 'n_tokens_mistral': 361, 'n_tokens_neox': 353, 'n_words': 87}