<commit_before>#include "AudioHandlerFactory.h"

auto AudioHandlerFactory::getAudioHandler(std::string name, AudioConfiguration &audioConfig) ->std::unique_ptr<AudioHandler>
{
	std::transform(name.begin(), name.end(), name.begin(), toupper);
	if (name == "RTAUDIOWRAPPER")
	{
		std::unique_ptr<RtAudioWrapper> rtaudiowrapper(new RtAudioWrapper(audioConfig));
		return std::move(rtaudiowrapper);
	}
}



auto AudioHandlerFactory::getAudioHandler(std::string name) ->std::unique_ptr<AudioHandler>
{
	std::transform(name.begin(), name.end(), name.begin(), toupper);
	if (name == "RTAUDIOWRAPPER")
	{
		std::unique_ptr<RtAudioWrapper> rtaudiowrapper(new RtAudioWrapper);
		return std::move(rtaudiowrapper);
	}
}

auto AudioHandlerFactory::stringToUpperCase(const std::string& s) -> std::string
{
	std::string result;

	std::locale loc;
	for (unsigned int i = 0; i < s.length(); ++i)
	{
		result += std::toupper(s.at(i), loc);<commit_msg>Another Build Fix for Linux<commit_after>#include "AudioHandlerFactory.h"

auto AudioHandlerFactory::getAudioHandler(std::string name, AudioConfiguration &audioConfig) ->std::unique_ptr<AudioHandler>
{
	name = stringToUpperCase(name);
	if (name == "RTAUDIOWRAPPER")
	{
		std::unique_ptr<RtAudioWrapper> rtaudiowrapper(new RtAudioWrapper(audioConfig));
		return std::move(rtaudiowrapper);
	}
}



auto AudioHandlerFactory::getAudioHandler(std::string name) ->std::unique_ptr<AudioHandler>
{
	name = stringToUpperCase(name);
	if (name == "RTAUDIOWRAPPER")
	{
		std::unique_ptr<RtAudioWrapper> rtaudiowrapper(new RtAudioWrapper);
		return std::move(rtaudiowrapper);
	}
}

auto AudioHandlerFactory::stringToUpperCase(const std::string& s) -> std::string
{
	std::string result;

	std::locale loc;
	for (unsigned int i = 0; i < s.length(); ++i)
	{
		result += std::toupper(s.at(i), loc);
{'fraction_non_alphanumeric': 0.15545755237045203, 'fraction_numerical': 0.0011025358324145535, 'mean_word_length': 7.287671232876712, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '3921938', 'n_tokens_mistral': 656, 'n_tokens_neox': 634, 'n_words': 111}