<commit_before>package wanion.unidict.integration;

import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
import de.ellpeck.actuallyadditions.api.recipe.CrusherRecipe;
import de.ellpeck.actuallyadditions.api.recipe.EmpowererRecipe;
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;

import java.lang.reflect.Field;

public class ActuallyAdditionsIntegration extends AbstractIntegrationThread {
    private Field crusherOutputOne;
    private Field crusherOutputTwo;
    private Field empowererOutput;
    private Field reconstructorOutput;

    public ActuallyAdditionsIntegration() {
        super("Actually Additions");
        try {
            (crusherOutputOne = CrusherRecipe.class.getDeclaredField("outputOne")).setAccessible(true);
            (crusherOutputTwo = CrusherRecipe.class.getDeclaredField("outputTwo")).setAccessible(true);
            (empowererOutput = EmpowererRecipe.class.getDeclaredField("output")).setAccessible(true);
            (reconstructorOutput = LensConversionRecipe.class.getDeclaredField("output")).setAccessible(true);
        } catch (NoSuchFieldException e) {
            logger.error("Could not find actually additions fields!");
            e.printStackTrace();
        }
    }

    @Override
    public String call() {<commit_msg>Fix possible crash on Actually Additions Integration<commit_after>package wanion.unidict.integration;

import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
import de.ellpeck.actuallyadditions.api.recipe.CrusherRecipe;
import de.ellpeck.actuallyadditions.api.recipe.EmpowererRecipe;
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;

import java.lang.reflect.Field;

public class ActuallyAdditionsIntegration extends AbstractIntegrationThread {
    private Field crusherOutputOne;
    private Field crusherOutputTwo;
    private Field empowererOutput;
    private Field reconstructorOutput;

    public ActuallyAdditionsIntegration() {
        super("Actually Additions");
        try {
            (crusherOutputOne = CrusherRecipe.class.getDeclaredField("outputOne")).setAccessible(true);
            (crusherOutputTwo = CrusherRecipe.class.getDeclaredField("outputTwo")).setAccessible(true);
            (empowererOutput = EmpowererRecipe.class.getDeclaredField("output")).setAccessible(true);
            (reconstructorOutput = LensConversionRecipe.class.getDeclaredField("output")).setAccessible(true);
        } catch (NoSuchFieldException | NullPointerException e) {
            logger.error("Could not find actually additions fields!");
            e.printStackTrace();
        }
    }

    @Override
    public String call() {
{'fraction_non_alphanumeric': 0.09053343350864013, 'fraction_numerical': 0.0, 'mean_word_length': 4.315369261477046, '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': '7592114', 'n_tokens_mistral': 741, 'n_tokens_neox': 739, 'n_words': 119}