<commit_before>package mapgen

import (
	"buildblast/lib/coords"
)

type FlatWorld struct {}

// Take seed to be consistent with all the other world types
func NewFlatWorld(seed float64) *FlatWorld {
	_ = seed
	return new(FlatWorld)
}

func (fw *FlatWorld) Block(bc coords.Block) (Block, bool) {
	if bc.X == 0 && bc.Y == 16 && bc.Z == 0 {
		return BLOCK_AIR, true
	}
	if bc.Y < 16 {
		return BLOCK_DIRT, false
	}
	return BLOCK_AIR, false
}

func (fw *FlatWorld) Chunk(cc coords.Chunk) (Chunk, []coords.World) {
	return generateChunk(fw, cc)<commit_msg>Give you something to orient yourself by.<commit_after>package mapgen

import (
	"buildblast/lib/coords"
)

type FlatWorld struct {}

// Take seed to be consistent with all the other world types
func NewFlatWorld(seed float64) *FlatWorld {
	_ = seed
	return new(FlatWorld)
}

func (fw *FlatWorld) Block(bc coords.Block) (Block, bool) {
	if bc.X == 0 && bc.Y == 16 && bc.Z == 0 {
		return BLOCK_AIR, true
	}
	if bc.Y < 16 {
		return BLOCK_DIRT, false
	}
	if bc.X % 4 == 0 && bc.Z % 4 == 0 && bc.Y < 17 {
		return BLOCK_STONE, false
	}
	return BLOCK_AIR, false
}

func (fw *FlatWorld) Chunk(cc coords.Chunk) (Chunk, []coords.World) {
	return generateChunk(fw, cc)
{'fraction_non_alphanumeric': 0.1302555647155812, 'fraction_numerical': 0.018136850783182192, 'mean_word_length': 3.7421875, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '4848708', 'n_tokens_mistral': 499, 'n_tokens_neox': 460, 'n_words': 139}