<commit_before>// This file contains functionality that helps with compiler compatibility.
// It should only be included in .cpp files, never in .hpp files.
#ifndef DSB_COMPAT_HELPERS_HPP
#define DSB_COMPAT_HELPERS_HPP

#include <memory>


// std::make_unique() is introduced in C++14, so for non-compliant compilers,
// we have to define it ourselves.  Why do we want this so badly, you ask?
// Check out section 3 here for an excellent answer:
// http://herbsutter.com/2013/05/29/gotw-89-solution-smart-pointers/
// (TL;DR: Exception safety, mainly.)
#if defined(__cplusplus) && (__cplusplus <= 201103L)
    namespace std
    {
        template<typename T>
        unique_ptr<T> make_unique() { return unique_ptr<T>(new T()); }
<commit_msg>Added missing #include in dsb/compat_helpers.hpp<commit_after>// This file contains functionality that helps with compiler compatibility.
// It should only be included in .cpp files, never in .hpp files.
#ifndef DSB_COMPAT_HELPERS_HPP
#define DSB_COMPAT_HELPERS_HPP

#include <memory>
#include <utility>


// std::make_unique() is introduced in C++14, so for non-compliant compilers,
// we have to define it ourselves.  Why do we want this so badly, you ask?
// Check out section 3 here for an excellent answer:
// http://herbsutter.com/2013/05/29/gotw-89-solution-smart-pointers/
// (TL;DR: Exception safety, mainly.)
#if defined(__cplusplus) && (__cplusplus <= 201103L)
    namespace std
    {
        template<typename T>
        unique_ptr<T> make_unique() { return unique_ptr<T>(new T()); }

{'fraction_non_alphanumeric': 0.11313394018205461, 'fraction_numerical': 0.0247074122236671, 'mean_word_length': 3.9485530546623795, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, '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': '6700317', 'n_tokens_mistral': 516, 'n_tokens_neox': 476, 'n_words': 164}