<commit_before>﻿using System;
using System.Diagnostics.CodeAnalysis;

namespace Castle.DynamicLinqQueryBuilder.Tests
{
    [ExcludeFromCodeCoverage]
    public static class ExceptionAssert
    {
        public static void Throws<T>(Action func) where T : Exception
        {
            var exceptionThrown = false;
            try
            {
                func.Invoke();
            }

            catch (T)
            {
                exceptionThrown = true;
            }
            catch (Exception ex)
            {

            }
            if (!exceptionThrown)
            {
                throw new Exception(
                    string.Format("An exception of type {0} was expected, but not thrown", typeof(T))
                    );
            }
        }
    }
}
<commit_msg>AppVeyor Build Failure<commit_after>﻿using System;
using System.Diagnostics.CodeAnalysis;

namespace Castle.DynamicLinqQueryBuilder.Tests
{
    [ExcludeFromCodeCoverage]
    public static class ExceptionAssert
    {
        public static void Throws<T>(Action func) where T : Exception
        {
            var exceptionThrown = false;
            try
            {
                func.Invoke();
            }

            catch (T)
            {
                exceptionThrown = true;
            }
            catch (Exception)
            {

            }
            if (!exceptionThrown)
            {
                throw new Exception(
                    string.Format("An exception of type {0} was expected, but not thrown", typeof(T))
                    );
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.0749063670411985, 'fraction_numerical': 0.0012484394506866417, 'mean_word_length': 1.232590529247911, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3431359', 'n_tokens_mistral': 396, 'n_tokens_neox': 382, 'n_words': 95}