<commit_before>package de.uni_hildesheim.sse.easy.loader;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

import de.uni_hildesheim.sse.easy.loader.framework.BundleInfo;
import de.uni_hildesheim.sse.easy.loader.framework.BundleRegistry;
import de.uni_hildesheim.sse.easy.loader.framework.Log;
import de.uni_hildesheim.sse.easy.loader.framework.NegatingFilter;
import de.uni_hildesheim.sse.easy.loader.framework.Options;
import de.uni_hildesheim.sse.easy.loader.framework.SimpleManifestNameFilter;
import de.uni_hildesheim.sse.easy.loader.framework.Utils;

/**
 * Provides common functionality for an EASy loader.
 * 
 * @author <NAME>
 */
public abstract class AbstractLoader {

    protected static final String TAG_EASY = "EASy-Producer";
    protected static final String EASY_EXCLUSION_PATTERN = ".*\\.uni[-_]hildesheim\\.sse.*";
    protected static final String EASY_INCLUSION_PATTERN = ".*\\.uni[-_]hildesheim\\.sse([^u][^i])*";
    
    private File base;

    /**
     * Creates a new abstract loader.
     * 
     * @param base the base folder where the plugins are located in
     */
    protected AbstractLoader(File base) {
        this.base = base;
    }
    
    /**
     * Initializes the {@link BundleRegistry}.
     */
    protected static void initializeRegistry() {
        BundleRegistry.getInstance().setEmitIgoredWarnings(false);
        // core emulated by the loader, required classes are loaded as libraries rather than bundles
        BundleRegistry.addGlobalIgnore("org.eclipse.osgi");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.ds");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.launcher");
        BundleRegistry.addGlobalIgnore("org.eclipse.osgi.services");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.common");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.preferences");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.registry");
        // not needed for running the languages
        BundleRegistry.addGlobalIgnore("org.eclipse.emf.mwe2.launch");
        BundleRegistry.addGlobalIgnore("org.eclipse.emf.mwe2.lib");<commit_msg>trying to bundle base JARs<commit_after>package de.uni_hildesheim.sse.easy.loader;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

import de.uni_hildesheim.sse.easy.loader.framework.BundleInfo;
import de.uni_hildesheim.sse.easy.loader.framework.BundleRegistry;
import de.uni_hildesheim.sse.easy.loader.framework.Log;
import de.uni_hildesheim.sse.easy.loader.framework.NegatingFilter;
import de.uni_hildesheim.sse.easy.loader.framework.Options;
import de.uni_hildesheim.sse.easy.loader.framework.SimpleManifestNameFilter;
import de.uni_hildesheim.sse.easy.loader.framework.Utils;

/**
 * Provides common functionality for an EASy loader.
 * 
 * @author <NAME>
 */
public abstract class AbstractLoader {

    protected static final String TAG_EASY = "EASy-Producer";
    protected static final String EASY_EXCLUSION_PATTERN = ".*\\.uni[-_]hildesheim\\.sse.*";
    protected static final String EASY_INCLUSION_PATTERN = ".*\\.uni[-_]hildesheim\\.sse([^u][^i])*";
    
    private File base;

    /**
     * Creates a new abstract loader.
     * 
     * @param base the base folder where the plugins are located in
     */
    protected AbstractLoader(File base) {
        this.base = base;
    }
    
    /**
     * Initializes the {@link BundleRegistry}.
     */
    protected static void initializeRegistry() {
        BundleRegistry.getInstance().setEmitIgoredWarnings(false);
        // core emulated by the loader, required classes are loaded as libraries rather than bundles
        //BundleRegistry.addGlobalIgnore("org.eclipse.osgi");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.ds");
        BundleRegistry.addGlobalIgnore("org.eclipse.equinox.launcher");
        //BundleRegistry.addGlobalIgnore("org.eclipse.osgi.services");
        //BundleRegistry.addGlobalIgnore("org.eclipse.equinox.common");
        //BundleRegistry.addGlobalIgnore("org.eclipse.equinox.preferences");
        //BundleRegistry.addGlobalIgnore("org.eclipse.equinox.registry");
        // not needed for running the languages
        BundleRegistry.addGlobalIgnore("org.eclipse.emf.mwe2.launch");
        BundleRegistry.addGlobalIgnore("org.eclipse.emf.mwe2.lib");
{'fraction_non_alphanumeric': 0.1173458502240239, 'fraction_numerical': 0.0008534243652656284, 'mean_word_length': 3.8379772961816307, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5015842', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1432, 'n_words': 257}