<commit_before>#include <gmock/gmock.h>

void a_func_with_linear_perf(size_t problemSize)
{
    while(problemSize)
    {
        --problemSize;
    }
}
void a_func_with_non_linear_perf(size_t problemSize)
{
    while(problemSize)
    {
        problemSize /= 2;
    }
}

struct LinearPerfDetector
{
    bool operator () (void (size_t))
    {
        return true;
    }
};

TEST(CanDetect, DISABLED_LinearPerformance)
{
    LinearPerfDetector linDetector;
    EXPECT_TRUE(linDetector(a_func_with_linear_perf));
    EXPECT_FALSE(linDetector(a_func_with_non_linear_perf));
}<commit_msg>Changed acceptance test to better represent intended usage.<commit_after>#include <gmock/gmock.h>

void a_func_with_linear_perf(size_t problemSize)
{
    while(problemSize)
    {
        --problemSize;
    }
}
void a_func_with_non_linear_perf(size_t problemSize)
{
    while(problemSize)
    {
        problemSize /= 2;
    }
}

TEST(CanAssert,  DISABLED_LinearPerformance)
{
//    using namespace cppbench;
//    ASSERT_THAT(
//        Performance(a_func_with_linear_perf),
//        Linear());
//
//    ASSERT_THAT(
//        Performance(a_func_with_non_linear_perf),
//        Not(Linear());
}
{'fraction_non_alphanumeric': 0.1085665818490246, 'fraction_numerical': 0.0016963528413910093, 'mean_word_length': 3.3065693430656933, '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': '4816651', 'n_tokens_mistral': 430, 'n_tokens_neox': 414, 'n_words': 58}