<commit_before>// Copyright <NAME> 2013. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include "test.hpp"

#include <luabind/intrusive_ptr_converter.hpp>
#include <luabind/luabind.hpp>

#include <boost/noncopyable.hpp>

using boost::intrusive_ptr;

namespace {

    struct B: private boost::noncopyable, counted_type<B>
    {
        B(int val_): ref_cnt(0), val(val_) {}
        virtual ~B() {
            std::cout << "~B\n";
            TEST_CHECK(ref_cnt == 0);
        }

        int ref_cnt;
        int val;
    };

    COUNTER_GUARD(B);
<commit_msg>Fix missing include in test_intrusive_ptr.cpp.<commit_after>// Copyright <NAME> 2013. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include "test.hpp"

#include <luabind/intrusive_ptr_converter.hpp>
#include <luabind/luabind.hpp>

#include <boost/noncopyable.hpp>
#include <iostream>

using boost::intrusive_ptr;

namespace {

    struct B: private boost::noncopyable, counted_type<B>
    {
        B(int val_): ref_cnt(0), val(val_) {}
        virtual ~B() {
            std::cout << "~B\n";
            TEST_CHECK(ref_cnt == 0);
        }

        int ref_cnt;
        int val;
    };

    COUNTER_GUARD(B);

{'fraction_non_alphanumeric': 0.13061506565307532, 'fraction_numerical': 0.0165860400829302, 'mean_word_length': 2.967123287671233, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2856556', 'n_tokens_mistral': 513, 'n_tokens_neox': 495, 'n_words': 118}