<commit_before>#include <array>
#include <random>
#include <cmath>
#include <Eigen/Core>
#include <coherent/coherent.hpp>

#include "example.hpp"

namespace coherent
{
	namespace examples
	{
		struct FractalExample : Example
		{
			inline void operator()(png::image<png::rgb_pixel>& image)
			{
				using namespace std::placeholders;
		
				int seed = parameter("seed", 42);
				float frequency = parameter("frequency", 5.0f);
				float lacunarity = parameter("lacunarity", 2.0f);
				float persistence = parameter("persistence", 1.0f);
	
				std::minstd_rand prng(seed);
				coherent::Permutation perm(prng);
				std::array<Eigen::Vector2f, 8> offsets;
	
				coherent::offsets(offsets.begin(), offsets.end(), prng, 1000.0f);
	
				auto simplex = std::bind(coherent::Simplex(), std::cref(perm), _1);
	
				auto begin = coherent::make_offset_iterator(offsets.begin(), simplex),
					 end   = coherent::make_offset_iterator(offsets.end(), simplex);
		
				int height = image.get_height();
				int width = image.get_width();
		
				for (int y = 0; y < height; y++)
					for (int x = 0; x < width; x++)
					{
						float rx = (float)x / width, ry = (float)y / height;
						float value = coherent::fractal(begin,
								                        end,
								                        lacunarity,
								                        persistence * ry,
								                        Eigen::Vector2f(1000, 1000) + Eigen::Vector2f(rx,ry) * frequency);
				
						value = (value * 0.5 + 0.5) * 0xFF;
				
						image[y][x] = png::rgb_pixel(value, value, value);
					}
			}
		};
	}
}

int main(int argc, char **argv)
{
	return coherent::examples::FractalExample().execute(argc, argv);
}<commit_msg>Fixed indentation<commit_after>#include <array>
#include <random>
#include <cmath>
#include <Eigen/Core>
#include <coherent/coherent.hpp>

#include "example.hpp"

namespace coherent
{
	namespace examples
	{
		struct FractalExample : Example
		{
			inline void operator()(png::image<png::rgb_pixel>& image)
			{
				using namespace std::placeholders;
		
				int seed = parameter("seed", 42);
				float frequency = parameter("frequency", 5.0f);
				float lacunarity = parameter("lacunarity", 2.0f);
				float persistence = parameter("persistence", 1.0f);
	
				std::minstd_rand prng(seed);
				coherent::Permutation perm(prng);
				std::array<Eigen::Vector2f, 8> offsets;
	
				coherent::offsets(offsets.begin(), offsets.end(), prng, 1000.0f);
	
				auto simplex = std::bind(coherent::Simplex(), std::cref(perm), _1);
	
				auto begin = coherent::make_offset_iterator(offsets.begin(), simplex),
				     end   = coherent::make_offset_iterator(offsets.end(), simplex);
		
				int height = image.get_height();
				int width = image.get_width();
		
				for (int y = 0; y < height; y++)
					for (int x = 0; x < width; x++)
					{
						float rx = (float)x / width, ry = (float)y / height;
						float value = coherent::fractal(begin,
								                        end,
								                        lacunarity,
								                        persistence * ry,
								                        Eigen::Vector2f(1000, 1000) + Eigen::Vector2f(rx,ry) * frequency);
				
						value = (value * 0.5 + 0.5) * 0xFF;
				
						image[y][x] = png::rgb_pixel(value, value, value);
					}
			}
		};
	}
}

int main(int argc, char **argv)
{
	return coherent::examples::FractalExample().execute(argc, argv);
}
{'fraction_non_alphanumeric': 0.14746816701214097, 'fraction_numerical': 0.019543973941368076, 'mean_word_length': 2.675734494015234, 'pattern_counts': {'":': 0, '<': 21, '<?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': '5859791', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1066, 'n_words': 241}