<commit_before>
package haschlabs.pluginapplication;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import haschlabs.pluginmanager.PluginLoader;
import haschlabs.pluginapplication.api.plugin.SpecificPlugin;
import haschlabs.pluginmanager.interfaces.PluginManager;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class PluginApplication {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        List<SpecificPlugin> plugins = null;

        File pluginFolder = new File("./plugins");

        if (!pluginFolder.exists()) {
            try {
                pluginFolder.mkdir();
            } catch (SecurityException e) {
                System.err.println(e.getMessage());
                return;
            }
        }

        ImplPluginLoader loader = new ImplPluginLoadler(pluginFolder);

        try {
            plugins = loader.loadPlugins();
        } catch (IOException ex) {
            Logger.getLogger(PluginApplication.class.getName()).log(Level.SEVERE, null, ex);
        }

        PluginManager manager = new ImplPluginManager();

        for (SpecificPlugin p : plugins) {

            System.out.println("--- Plugin ---");
            p.setPluginManager(manager);
            p.start();
            System.out.println("Name: " + p.getName());
            System.out.println("Description: " + p.getDescription());
            System.out.println("Version: " + p.getVersion());
            System.out.println("App-Version: " + p.getApplicationVersion());

            for (String author : p.getAuthors()) {
                System.out.println("Author: " + author);
            }

            System.out.println("Specific Method: " + p.specificMethod());
            System.out.println();
        }

        try {
            Thread.sleep(2000);
        } catch (InterruptedException ie) {
            ie.printStackTrace(System.out);
        }

        for (SpecificPlugin p : plugins) {
            p.stop();
        }
    }
}
<commit_msg>Made the programm flow a little more straightforward<commit_after>
package haschlabs.pluginapplication;

import java.io.File;
import java.io.IOException;
import java.util.List;
import haschlabs.pluginapplication.api.plugin.SpecificPlugin;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
public class PluginApplication {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        List<SpecificPlugin> plugins = null;

        File pluginFolder = new File("./plugins");

        if (!pluginFolder.exists()) {
            try {
                pluginFolder.mkdir();
            } catch (SecurityException e) {
                System.err.println(e.getMessage());
                return;
            }
        }

        ImplPluginLoader loader = new ImplPluginLoader(pluginFolder);

        try {
            plugins = loader.loadPlugins();
        } catch (IOException e) {
            System.err.println(e.getMessage());
            return;
        }

        ImplPluginManager manager = new ImplPluginManager();

        for (SpecificPlugin p : plugins) {
            p.setPluginManager(manager);
            p.start();

            System.out.println("--- Plugin ---");
            System.out.println("Name: " + p.getName());
            System.out.println("Description: " + p.getDescription());
            System.out.println("Version: " + p.getVersion());
            System.out.println("App-Version: " + p.getApplicationVersion());

            for (String author : p.getAuthors()) {
                System.out.println("Author: " + author);
            }

            System.out.println("Specific Method: " + p.specificMethod());
            System.out.println();
        }

        try {
            Thread.sleep(2000);
        } catch (InterruptedException ie) {
            ie.printStackTrace(System.out);
        }

        for (SpecificPlugin p : plugins) {
            p.stop();
        }
    }
}

{'fraction_non_alphanumeric': 0.12256532066508313, 'fraction_numerical': 0.0019002375296912114, 'mean_word_length': 1.7540876389797253, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3628406', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1067, 'n_words': 210}