<commit_before>package xyz.nulldev.ew.mods;

import net.minecraft.util.BlockPos;
import tk.wurst_client.WurstClient;
import tk.wurst_client.api.Chat;
import tk.wurst_client.api.Module;
import tk.wurst_client.events.ChatOutputEvent;
import tk.wurst_client.events.listeners.ChatOutputListener;
import tk.wurst_client.mods.Mod;

/**
 * Project: EvenWurse
 * Created: 19/12/15
 * Author: nulldev
 */

@Module.ModuleInfo(version = 1.02f,
        minVersion = 120)
@Mod.Info(category = Mod.Category./*RENDER*/HIDDEN,
        description = "Faster, enhanced version of .path and .goto!",
        name = "GPS")
//TODO WIP (Temporarily on hold...)
public class GPSMod extends Mod implements ChatOutputListener {

    float x;
    float z;

    @Override
    public void onEnable() {
        WurstClient.INSTANCE.chat.info("Initializing GPS...");
        WurstClient.INSTANCE.chat.info("Please enter the coordinates to go to: [x] [z]");
        WurstClient.INSTANCE.events.add(ChatOutputListener.class, this);
        super.onEnable();
    }

    @Override
    public void onDisable() {
        WurstClient.INSTANCE.events.remove(ChatOutputListener.class, this);
        super.onDisable();
    }

    @Override
    public void initSliders() {
        super.initSliders();
    }

    @Override
    public void updateSettings() {
        super.updateSettings();
    }

    @Override
    public void onSentMessage(ChatOutputEvent event) {
        event.cancel();
        String[] split = event.getMessage().split(" ");
        if(split.length != 3) {
            Chat.sendError("Invalid coordinate format!");
            return;
        }
        try {
            x = Integer.parseInt(split[0]);
            z = Integer.parseInt(split[2]);
        } catch(NumberFormatException e) {
            Chat.sendError("Invalid coordinates!");
            return;
        }
        WurstClient.INSTANCE.events.remove(ChatOutputListener.class, this);
        Chat.sendInfo("Attempting to route to: (" + x + ", " + z + ")...");

    }

    enum Direction {<commit_msg>Fix compile error in GPSMod.<commit_after>package xyz.nulldev.ew.mods;

import net.minecraft.util.BlockPos;
import tk.wurst_client.WurstClient;
import tk.wurst_client.api.Chat;
import tk.wurst_client.api.Module;
import tk.wurst_client.events.ChatOutputEvent;
import tk.wurst_client.events.listeners.ChatOutputListener;
import tk.wurst_client.mods.Mod;

/**
 * Project: EvenWurse
 * Created: 19/12/15
 * Author: nulldev
 */

@Module.ModuleInfo(version = 1.02f,
        minVersion = 120)
@Mod.Info(category = Mod.Category./*RENDER*/HIDDEN,
        description = "Faster, enhanced version of .path and .goto!",
        name = "GPS")
//TODO WIP (Temporarily on hold...)
public class GPSMod extends Mod implements ChatOutputListener {

    float x;
    float z;

    @Override
    public void onEnable() {
        WurstClient.INSTANCE.chat.info("Initializing GPS...");
        WurstClient.INSTANCE.chat.info("Please enter the coordinates to go to: [x] [z]");
        WurstClient.INSTANCE.events.add(ChatOutputListener.class, this);
        super.onEnable();
    }

    @Override
    public void onDisable() {
        WurstClient.INSTANCE.events.remove(ChatOutputListener.class, this);
        super.onDisable();
    }

    @Override
    public void initSettings() {
        super.initSettings();
    }

    @Override
    public void updateSettings() {
        super.updateSettings();
    }

    @Override
    public void onSentMessage(ChatOutputEvent event) {
        event.cancel();
        String[] split = event.getMessage().split(" ");
        if(split.length != 3) {
            Chat.sendError("Invalid coordinate format!");
            return;
        }
        try {
            x = Integer.parseInt(split[0]);
            z = Integer.parseInt(split[2]);
        } catch(NumberFormatException e) {
            Chat.sendError("Invalid coordinates!");
            return;
        }
        WurstClient.INSTANCE.events.remove(ChatOutputListener.class, this);
        Chat.sendInfo("Attempting to route to: (" + x + ", " + z + ")...");

    }

    enum Direction {
{'fraction_non_alphanumeric': 0.12636961285609935, 'fraction_numerical': 0.007304601899196494, 'mean_word_length': 2.6353982300884957, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5930593', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1265, 'n_words': 252}