<commit_before>#ifndef STREAMS_37824903284320
#define STREAMS_37824903284320

#include "include/fixed-point/fixed.h"

namespace Streams
{
	// TODO: Change sprintf to snprintf

	namespace Formatters
	{
		namespace details
		{
			// Write format
			template <typename T>
			const char * GetWriteFormatter(T) { /* Don't compile no return*/ }

			template <>
			const char * GetWriteFormatter<double>(double) { return "%lf"; }

			template <>
			const char * GetWriteFormatter<float>(float) { return "%f"; }

			template <>
			const char * GetWriteFormatter<int>(int) { return "%d"; }

			template <>
			const char * GetWriteFormatter<char*>(char*) { return "%s"; }

			template <>
			const char * GetWriteFormatter<char>(char) { return "%c"; }

			// Read format
			template <typename T>
			const char * GetReadFormatter(T) { /* Don't compile no return*/ }

			template <>
			const char * GetReadFormatter<double>(double) { return "%lf%n"; }

			template <>
			const char * GetReadFormatter<float>(float) { return "%f%n"; }

			template <>
			const char * GetReadFormatter<int>(int) { return "%d%n"; }

			template <>
			const char * GetReadFormatter<char*>(char*) { return "%s%n"; }

			// Write Fixed
			template<typename intfmt>
			const char* GetFixedFormat(intfmt&)
			{
				// doesn't compile
				// if the code doesn't compile here add another overload below
			}

			template <>
			const char* GetFixedFormat<long long>(long long&) { return "%s%llu.%.*llu"; }

			template <>
			const char* GetFixedFormat<int>(int&) { return "%s%u.%.*u"; }

			template <>
			const char* GetFixedFormat<short>(short&) { return "%s%u.%.*u"; }

			template <>
			const char* GetFixedFormat<signed char>(signed char&) { return "%s%u.%.*u"; }

			template <typename T>
			struct Formatter<commit_msg>Made some functions static<commit_after>#ifndef STREAMS_37824903284320
#define STREAMS_37824903284320

#include "include/fixed-point/fixed.h"

namespace Streams
{
	// TODO: Change sprintf to snprintf

	namespace Formatters
	{
		namespace details
		{
			// Write format
			template <typename T>
			static const char * GetWriteFormatter(T) { /* Don't compile no return*/ }

			template <>
			static const char * GetWriteFormatter<double>(double) { return "%lf"; }

			template <>
			static const char * GetWriteFormatter<float>(float) { return "%f"; }

			template <>
			static const char * GetWriteFormatter<int>(int) { return "%d"; }

			template <>
			static const char * GetWriteFormatter<char*>(char*) { return "%s"; }

			template <>
			static const char * GetWriteFormatter<char>(char) { return "%c"; }

			// Read format
			template <typename T>
			static const char * GetReadFormatter(T) { /* Don't compile no return*/ }

			template <>
			static const char * GetReadFormatter<double>(double) { return "%lf%n"; }

			template <>
			static const char * GetReadFormatter<float>(float) { return "%f%n"; }

			template <>
			static const char * GetReadFormatter<int>(int) { return "%d%n"; }

			template <>
			static const char * GetReadFormatter<char*>(char*) { return "%s%n"; }

			// Write Fixed
			template<typename intfmt>
			static const char* GetFixedFormat(intfmt&)
			{
				// doesn't compile
				// if the code doesn't compile here add another overload below
			}

			template <>
			static const char* GetFixedFormat<long long>(long long&) { return "%s%llu.%.*llu"; }

			template <>
			static const char* GetFixedFormat<int>(int&) { return "%s%u.%.*u"; }

			template <>
			static const char* GetFixedFormat<short>(short&) { return "%s%u.%.*u"; }

			template <>
			static const char* GetFixedFormat<signed char>(signed char&) { return "%s%u.%.*u"; }

			template <typename T>
			struct Formatter
{'fraction_non_alphanumeric': 0.14343707713125844, 'fraction_numerical': 0.015155615696887685, 'mean_word_length': 3.5970149253731343, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '5776212', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1111, 'n_words': 312}