<commit_before>#pragma once
#include <string>

#ifndef _MSC_VER
#include <cxxabi.h>
#endif

namespace wiertlo
{
	namespace detail
	{
		void replaceAll(std::string& source, const std::string& from, const std::string& to)
		{
			std::string newString;
			newString.reserve(source.length());  // avoids a few memory allocations

			std::string::size_type lastPos = 0;
			std::string::size_type findPos;

			while(std::string::npos != (findPos = source.find(from, lastPos)))
			{
				newString.append(source, lastPos, findPos - lastPos);
				newString += to;
				lastPos = findPos + from.length();
			}<commit_msg>Add missing `inline`<commit_after>#pragma once
#include <string>

#ifndef _MSC_VER
#include <cxxabi.h>
#endif

namespace wiertlo
{
	namespace detail
	{
		inline void replaceAll(std::string& source, const std::string& from, const std::string& to)
		{
			std::string newString;
			newString.reserve(source.length());  // avoids a few memory allocations

			std::string::size_type lastPos = 0;
			std::string::size_type findPos;

			while(std::string::npos != (findPos = source.find(from, lastPos)))
			{
				newString.append(source, lastPos, findPos - lastPos);
				newString += to;
				lastPos = findPos + from.length();
			}
{'fraction_non_alphanumeric': 0.1393841166936791, 'fraction_numerical': 0.0016207455429497568, 'mean_word_length': 4.369565217391305, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '97433', 'n_tokens_mistral': 472, 'n_tokens_neox': 410, 'n_words': 99}