<commit_before>package com.mcgoodtime.gti.common.worldgen;


import cpw.mods.fml.common.IWorldGenerator;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import ic2.api.item.IC2Items;

import java.util.Random;

/**
 * 
 *
 * @author JAVA10
 */

public class BsaltGen implements IWorldGenerator{
	private static final int TICKET=50;
	private static final int MAX_HEIGHT=27;
	private static final int GEN_SIZE=10;
	
	@Override
	public void generate(Random random, int chunkX, int chunkZ, World world,
			IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
	if((!world.provider.isHellWorld) && (!world.provider.hasNoSky)){
		generateOre(world, random, chunkX, chunkZ);
	} 	
}

	private void generateOre(World world, Random rand, int chunkX, int chunkZ) {
		for (int k = 0; k < this.TICKET; k++) {
            int x = chunkX * 27 + rand.nextInt(27);
            int y = rand.nextInt(this.MAX_HEIGHT);
            int z = chunkZ * 27+ rand.nextInt(27);

            new WorldGenMinable(Block.getBlockFromItem(IC2Items.getItem("Basalt").getItem()), this.GEN_SIZE).generate(world, rand, x, y, z);
        }
	}
}<commit_msg>Haha soooo buggy<commit_after>package com.mcgoodtime.gti.common.worldgen;


import cpw.mods.fml.common.IWorldGenerator;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import ic2.api.item.IC2Items;

import java.util.Random;

/**
 * Another world generator?
 *
 * @author JAVA10
 */

public class BsaltGen implements IWorldGenerator {
    private static final int TICKET = 5;
    private static final int MAX_HEIGHT = 27;
    private static final int GEN_SIZE = 10;
	
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world,
            IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
        if (!world.provider.isHellWorld && !world.provider.hasNoSky)
           generateOre(world, random, chunkX, chunkZ);
    }

    private void generateOre(World world, Random rand, int chunkX, int chunkZ) {
        for (int k = 0; k < this.TICKET; k++) {
            int x = chunkX * 16 + rand.nextInt(16);
            int y = rand.nextInt(this.MAX_HEIGHT);
            int z = chunkZ * 16 + rand.nextInt(16);

            new WorldGenMinable(IC2Items.getItem("Basalt")), this.GEN_SIZE).generate(world, rand, x, y, z);
        }
    }
}
{'fraction_non_alphanumeric': 0.11306340718105425, 'fraction_numerical': 0.014896867838044309, 'mean_word_length': 3.5786713286713288, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5011167', 'n_tokens_mistral': 884, 'n_tokens_neox': 846, 'n_words': 205}