<commit_before>#pragma once

namespace libkeen {
namespace internal {

template<typename T>
class Scoped
{
public:
    Scoped(T*& pointer);
    void onScopeEnd();
    ~Scoped();
private:
    T*& mPointer;
};

template<typename T>
Scoped<T>::Scoped(T*& pointer)
    : mPointer(pointer)
{}

template<typename T>
void Scoped<T>::onScopeEnd()
{
    delete mPointer;
}

template<typename T>
Scoped<T>::~Scoped()
{
    onScopeEnd();
    mPointer = nullptr;
}

}}<commit_msg>let people get unresolved symbols error rather than providing a default implementation<commit_after>#pragma once

namespace libkeen {
namespace internal {

template<typename T>
class Scoped
{
public:
    Scoped(T*& pointer);
    void onScopeEnd();
    ~Scoped();
private:
    T*& mPointer;
};

template<typename T>
Scoped<T>::Scoped(T*& pointer)
    : mPointer(pointer)
{}

template<typename T>
Scoped<T>::~Scoped()
{
    onScopeEnd();
    mPointer = nullptr;
}

}}
{'fraction_non_alphanumeric': 0.14255091103965703, 'fraction_numerical': 0.0, 'mean_word_length': 4.5266272189349115, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1432005', 'n_tokens_mistral': 325, 'n_tokens_neox': 323, 'n_words': 77}