<commit_before>/**
 * @ingroup rd_libraries
 *
 * \defgroup RdUtilsLib
 *
 * @brief The RdUtilsLib library contains miscellaneous macros and utilities
 */
#include "RdVocabs.hpp"
#include "RdMacros.hpp"
#include "RdVector2dBase.hpp"
#include "RdIniReader.hpp"
<commit_msg>Add helper to convert number to string<commit_after>#ifndef __RD_UTILS_HPP__
#define __RD_UTILS_HPP__

/**
 * @ingroup rd_libraries
 *
 * \defgroup RdUtilsLib
 *
 * @brief The RdUtilsLib library contains miscellaneous macros and utilities
 */
//-- Include all utils
#include "RdVocabs.hpp"
#include "RdMacros.hpp"
#include "RdVector2dBase.hpp"
#include "RdIniReader.hpp"

//-- Misc utils ----------------------------------------------//
#include "string"

template<typename T> std::string number2str(T number)
{
    std::stringstream sstream;
    sstream << number;
    return sstream.str();
}

#endif
{'fraction_non_alphanumeric': 0.16494845360824742, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 3.6, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '6943381', 'n_tokens_mistral': 308, 'n_tokens_neox': 294, 'n_words': 72}