<commit_before>#include <rleahylib/rleahylib.hpp>
#include <world/world.hpp>
#include <mod.hpp>
#include <cstring>
#include <limits>
#include <utility>


static const String name("Super Flat World Generator");
static const Word priority=2;
static const SByte dimensions []={0};
//	Key used in the backing store for the
//	super flat code
static const String key("superflat_preset_code");
//	The world type string which identifies
//	this generator
static const String world_type("FLAT");
//	Default preset code used in the absence
//	of a code from the database
static const String default_preset("2;7,2x3,2");
static const Regex preset_parse("(?<=^|;).*?(?=$|;)");
static const Regex block_parse(
	"(?<=^|,)\\s*(?:(\\d+)\\s*x\\s*)?(\\d+)(?:\\s*\\:\\s*(\\d+))?\\s*(?=$|,)",
	RegexOptions().SetIgnoreCase()
);
//	Presets ripped directly from vanilla
//	Minecraft
static const Vector<Tuple<String,String>> presets={
	{
		"Classic Flat",
		default_preset<commit_msg>Superflat Generator Fixes<commit_after>#include <rleahylib/rleahylib.hpp>
#include <world/world.hpp>
#include <mod.hpp>
#include <server.hpp>
#include <cstring>
#include <limits>
#include <utility>


using namespace MCPP;


static const String name("Super Flat World Generator");
static const Word priority=2;
static const SByte dimensions []={0};
//	Key used in the backing store for the
//	super flat code
static const String key("superflat_preset_code");
//	The world type string which identifies
//	this generator
static const String world_type("FLAT");
//	Default preset code used in the absence
//	of a code from the database
static const String default_preset("2;7,2x3,2");
static const Regex preset_parse("(?<=^|;).*?(?=$|;)");
static const Regex block_parse(
	"(?<=^|,)\\s*(?:(\\d+)\\s*x\\s*)?(\\d+)(?:\\s*\\:\\s*(\\d+))?\\s*(?=$|,)",
	RegexOptions().SetIgnoreCase()
);
//	Presets ripped directly from vanilla
//	Minecraft
static const Vector<Tuple<String,String>> presets={
	{
		"Classic Flat",
		default_preset
{'fraction_non_alphanumeric': 0.18296370967741934, 'fraction_numerical': 0.007056451612903226, 'mean_word_length': 5.145510835913313, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 20, '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': '2343578', 'n_tokens_mistral': 698, 'n_tokens_neox': 678, 'n_words': 196}