<commit_before>package hudson.plugins.analysis.util;

import org.apache.xerces.parsers.SAXParser;

/**
 * Registers the correct SAX driver if the environment variable is set.
 */
public class SaxSetup {
    /** Property of SAX parser factory. */
    public static final String SAX_DRIVER_PROPERTY = "org.xml.sax.driver";

    private final String oldProperty;

    /**
     * Creates a new instance of {@link SaxSetup}.
     * <p/>
     * Registers a valid SAX driver.
     */
    public SaxSetup() {
        oldProperty = System.getProperty(SAX_DRIVER_PROPERTY);
        if (oldProperty != null) {
            System.setProperty(SAX_DRIVER_PROPERTY, SAXParser.class.getName());
        }
    }
<commit_msg>[FIXED JENKINS-27548] Do not alter SAX environment variable anymore.<commit_after>package hudson.plugins.analysis.util;

import org.apache.xerces.parsers.SAXParser;

/**
 * Registers the correct SAX driver if the environment variable is set.
 *
 * @Deprecated The usage of this class is discouraged, see JENKINS-27548
 */
@Deprecated
public class SaxSetup {
    /** Property of SAX parser factory. */
    public static final String SAX_DRIVER_PROPERTY = "org.xml.sax.driver";

    private final String oldProperty;

    /**
     * Creates a new instance of {@link SaxSetup}.
     * <p/>
     * Registers a valid SAX driver.
     */
    public SaxSetup() {
        oldProperty = System.getProperty(SAX_DRIVER_PROPERTY);
        if (oldProperty != null) {
            System.setProperty(SAX_DRIVER_PROPERTY, SAXParser.class.getName());
        }
    }

{'fraction_non_alphanumeric': 0.1014771997430957, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 2.9443037974683546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2139058', 'n_tokens_mistral': 471, 'n_tokens_neox': 462, 'n_words': 129}