<commit_before>package graphloader;

import net.sourceforge.gxl.*;
import org.graphstream.graph.Edge;
import org.graphstream.graph.EdgeRejectedException;
import org.graphstream.graph.Graph;
import org.graphstream.graph.Node;
import org.graphstream.graph.implementations.MultiGraph;
import org.graphstream.graph.implementations.SingleGraph;
import org.xml.sax.SAXException;
import utils.GraphUtils;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;

/**
 * Class used to import graphs saved in GXL format.
 */
@SuppressWarnings("WeakerAccess")
final class GXLImporter {

    /**
     * Set of seen IDs to ensure uniqueness of IDs given to GraphStream Graph elements.
     */
    private static final Set<String> ids = new HashSet<>();
    /**
     * Counter used to guarantee unique IDs for GraphStream Graph elements.
     */
    private static int idcounter = 0;
    /**
     * List of file extensions accepted by this importer.
     */
    private static final List<String> acceptslist = Arrays.asList("gxl", "gst", "gpl", "gst", "gpr", "gty");

    /**
     * Returns whether an extension is accepted by this importer.
     *
     * @param ext File extension to verify.
     * @return <tt>true</tt> if the file extension is accepted.
     */<commit_msg>Removed duplicate entry in GXLImporter<commit_after>package graphloader;

import net.sourceforge.gxl.*;
import org.graphstream.graph.Edge;
import org.graphstream.graph.EdgeRejectedException;
import org.graphstream.graph.Graph;
import org.graphstream.graph.Node;
import org.graphstream.graph.implementations.MultiGraph;
import org.graphstream.graph.implementations.SingleGraph;
import org.xml.sax.SAXException;
import utils.GraphUtils;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;

/**
 * Class used to import graphs saved in GXL format.
 */
@SuppressWarnings("WeakerAccess")
final class GXLImporter {

    /**
     * Set of seen IDs to ensure uniqueness of IDs given to GraphStream Graph elements.
     */
    private static final Set<String> ids = new HashSet<>();
    /**
     * Counter used to guarantee unique IDs for GraphStream Graph elements.
     */
    private static int idcounter = 0;
    /**
     * List of file extensions accepted by this importer.
     */
    private static final List<String> acceptslist = Arrays.asList("gxl", "gst", "gpl", "gpr", "gty");

    /**
     * Returns whether an extension is accepted by this importer.
     *
     * @param ext File extension to verify.
     * @return <tt>true</tt> if the file extension is accepted.
     */
{'fraction_non_alphanumeric': 0.10669014084507042, 'fraction_numerical': 0.0007042253521126761, 'mean_word_length': 3.719269102990033, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2355694', 'n_tokens_mistral': 840, 'n_tokens_neox': 824, 'n_words': 253}