<commit_before>package com.agimatec.validation.xml;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.Annotations;

/**
 * Description: <br/>
 * User: roman.stumm <br/>
 * Date: 05.07.2007 <br/>
 * Time: 14:54:13 <br/>
 * Copyright: Agimatec GmbH 2008
 */
public class XMLMapper {
    private static final XMLMapper instance = new XMLMapper();

    private final XStream xStream;

    private XMLMapper() {
        xStream = new XStream();
        Annotations.configureAliases(xStream, XMLFeaturesCapable.class,
                XMLMetaFeature.class, XMLMetaBean.class, XMLMetaBeanInfos.class,
                XMLMetaBeanReference.class, XMLMetaElement.class, XMLMetaProperty.class,
                XMLMetaValidator.class, XMLMetaValidatorReference.class);<commit_msg>replaced use of deprecated xstream API<commit_after>package com.agimatec.validation.xml;

import com.thoughtworks.xstream.XStream;

/**
 * Description: <br/>
 * User: roman.stumm <br/>
 * Date: 05.07.2007 <br/>
 * Time: 14:54:13 <br/>
 * Copyright: Agimatec GmbH 2008
 */
public class XMLMapper {
    private static final XMLMapper instance = new XMLMapper();

    private final XStream xStream;

    private XMLMapper() {
        xStream = new XStream();
        xStream.processAnnotations(new Class[] {XMLFeaturesCapable.class,
                XMLMetaFeature.class, XMLMetaBean.class, XMLMetaBeanInfos.class,
                XMLMetaBeanReference.class, XMLMetaElement.class, XMLMetaProperty.class,
                XMLMetaValidator.class, XMLMetaValidatorReference.class});
{'fraction_non_alphanumeric': 0.10399492707672796, 'fraction_numerical': 0.022828154724159798, 'mean_word_length': 3.4957264957264957, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1689726', 'n_tokens_mistral': 491, 'n_tokens_neox': 445, 'n_words': 103}