<commit_before>#include <op/utest/unit_test.h>
#include <op/utest/unit_test_is.h>
#include <op/common/Bitset.h>
#include <op/common/typedefs.h>


template <class B>
void generic_test(OP::utest::TestResult &tresult, B& container)
{
    for (auto i = 0; i < container.capacity(); ++i)
        container.clear(i);

    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(!container.get(i), "Value must be 0");
        container.set(i);
    }
    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(container.get(i), "Value must be 1");
        if ( i & 1 )//clear only odd 
            container.clear(i);
    }
    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(
            ((i & 1) ? !container.get(i) : container.get(i)), OP_CODE_DETAILS("Value must be " << (i & ~1)));<commit_msg>Fix improper use of macro<commit_after>#include <op/utest/unit_test.h>
#include <op/utest/unit_test_is.h>
#include <op/common/Bitset.h>
#include <op/common/typedefs.h>


template <class B>
void generic_test(OP::utest::TestResult &tresult, B& container)
{
    for (auto i = 0; i < container.capacity(); ++i)
        container.clear(i);

    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(!container.get(i), "Value must be 0");
        container.set(i);
    }
    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(container.get(i), "Value must be 1");
        if ( i & 1 )//clear only odd 
            container.clear(i);
    }
    for (auto i = 0; i < container.capacity(); ++i)
    {
        tresult.assert_true(
            ((i & 1) ? !container.get(i) : container.get(i)), OP_CODE_DETAILS()<<"Value must be " << (i & ~1));
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.010180995475113122, 'mean_word_length': 2.7399577167019027, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 13, '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': '4699262', 'n_tokens_mistral': 656, 'n_tokens_neox': 626, 'n_words': 149}