<commit_before>package animfix;

import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.common.config.Configuration;
import org.lwjgl.opengl.ContextCapabilities;
import org.lwjgl.opengl.GLContext;

import java.io.File;
import java.util.Arrays;

public class AnimfixModContainer extends DummyModContainer {
    public static boolean copyImageSupported = false;
    public static boolean copyImageEnabled = false;

    public AnimfixModContainer() {
        super(new ModMetadata());
        ModMetadata meta = getMetadata();
        meta.modId="animfix";
        meta.name="Animated Texture Fix";
        meta.version="0.2";
        meta.authorList= Arrays.asList("Kobata");
        meta.description="Makes animated textures faster.";
    }

    @Override
    public boolean registerBus(EventBus bus, LoadController controller) {
        bus.register(this);
        return true;
    }

    @Subscribe
    public void preInit(FMLPreInitializationEvent evt) {
        ContextCapabilities caps = GLContext.getCapabilities();
        copyImageSupported = caps.OpenGL43 || caps.GL_ARB_copy_image;
        if(!copyImageSupported) {
            evt.getModLog().warn("Fast animated textures require OpenGL 4.3 or ARB_copy_image extension, which were not detected. Using original slow path.");
        } else {
            evt.getModLog().info("Using fast animated textures.");
        }

        File configFile = evt.getSuggestedConfigurationFile();
        Configuration config = new Configuration(configFile);

        boolean enableFastAnimation = config.getBoolean("enableFastAnimation", "animfix", true, "Enable the faster animation mode. Set to false only if true causes issues.");

        if(config.hasChanged()) {
            config.save();
        }

        copyImageEnabled = copyImageSupported && copyImageEnabled;
    }
}<commit_msg>That was a stupid typo<commit_after>package animfix;

import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.common.config.Configuration;
import org.lwjgl.opengl.ContextCapabilities;
import org.lwjgl.opengl.GLContext;

import java.io.File;
import java.util.Arrays;

public class AnimfixModContainer extends DummyModContainer {
    public static boolean copyImageSupported = false;
    public static boolean copyImageEnabled = false;

    public AnimfixModContainer() {
        super(new ModMetadata());
        ModMetadata meta = getMetadata();
        meta.modId="animfix";
        meta.name="Animated Texture Fix";
        meta.version="0.2";
        meta.authorList= Arrays.asList("Kobata");
        meta.description="Makes animated textures faster.";
    }

    @Override
    public boolean registerBus(EventBus bus, LoadController controller) {
        bus.register(this);
        return true;
    }

    @Subscribe
    public void preInit(FMLPreInitializationEvent evt) {
        ContextCapabilities caps = GLContext.getCapabilities();
        copyImageSupported = caps.OpenGL43 || caps.GL_ARB_copy_image;
        if(!copyImageSupported) {
            evt.getModLog().warn("Fast animated textures require OpenGL 4.3 or ARB_copy_image extension, which were not detected. Using original slow path.");
        } else {
            evt.getModLog().info("Using fast animated textures.");
        }

        File configFile = evt.getSuggestedConfigurationFile();
        Configuration config = new Configuration(configFile);

        boolean enableFastAnimation = config.getBoolean("enableFastAnimation", "animfix", true, "Enable the faster animation mode. Set to false only if true causes issues.");

        if(config.hasChanged()) {
            config.save();
        }

        copyImageEnabled = copyImageSupported && enableFastAnimation;
    }
}
{'fraction_non_alphanumeric': 0.09551098376313276, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 3.470651013874066, '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': '406235', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1148, 'n_words': 266}