<commit_before>/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.filter.type;

import java.util.Objects;

import org.apache.commons.lang3.builder.CompareToBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * Combination of supported system and their data types.
 *
 * @version $Id$
 * @since 6.2M1
 */
public class FilterStreamType implements Comparable<FilterStreamType>
{
    /**
     * Data format identifier for XML.
     * <p>
     * Main content is based on XML.
     */
    public static final String DATA_XML = "xml";

    /**
     * Data format identifier for XAR.
     * <p>
     * Main content is based on XAR format.
     */

    public static final String DATA_XAR = "xar";

    /**
     * Data format identifier for TEXT.
     * <p>
     * Main content is textual content which does not belong to another well know and more specific textual content.
     * 
     * @since 9.5RC1
     */
    public static final String DATA_TEXT = "text";

    /**
     * Generic WIKI XML Syntax.
     */
    public static final FilterStreamType FILTER_XML = new FilterStreamType(SystemType.FILTER, DATA_XML);

    /**
     * The XAR format in version 1.1.
     *
     * @since 6.2M1
     */
    public static final FilterStreamType XWIKI_XAR_11 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.1");

    /**
     * The XAR format in version 1.2.
     *
     * @since 7.2M1
     */
    public static final FilterStreamType XWIKI_XAR_12 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.2");

    /**
     * The XAR format in version 1.3.
     *
     * @since 9.0RC1
     */
    public static final FilterStreamType XWIKI_XAR_13 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.3");

    /**
     * The XAR format in the current version.
     *
     * @since 7.2M1
     */
    public static final FilterStreamType XWIKI_XAR_CURRENT = XWIKI_XAR_13;

    /**
     * The database stream based on oldcore APIs.
     */
    public static final FilterStreamType XWIKI_INSTANCE = new FilterStreamType(SystemType.XWIKI, "instance");

    /**
     * The Confluence XML format.
     */
    public static final FilterStreamType CONFLUENCE_XML = new FilterStreamType(SystemType.CONFLUENCE, DATA_XML);

    /**
     * The MediaWiki XML format.
     */
    public static final FilterStreamType MEDIAWIKI_XML = new FilterStreamType(SystemType.MEDIAWIKI, DATA_XML);

    /**
     * The DokuWiki data format.
     * 
     * @since 9.5RC1
     */
    public static final FilterStreamType DOKUWIKI_TEXT = new FilterStreamType(SystemType.DOKUWIKI, DATA_TEXT);

    /**
     * Wiki type.
     */
    private SystemType type;

    /**
     * Export data format.
     */<commit_msg>XCOMMONS-2350: Increment XAR XML specification current version<commit_after>/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.filter.type;

import java.util.Objects;

import org.apache.commons.lang3.builder.CompareToBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * Combination of supported system and their data types.
 *
 * @version $Id$
 * @since 6.2M1
 */
public class FilterStreamType implements Comparable<FilterStreamType>
{
    /**
     * Data format identifier for XML.
     * <p>
     * Main content is based on XML.
     */
    public static final String DATA_XML = "xml";

    /**
     * Data format identifier for XAR.
     * <p>
     * Main content is based on XAR format.
     */

    public static final String DATA_XAR = "xar";

    /**
     * Data format identifier for TEXT.
     * <p>
     * Main content is textual content which does not belong to another well know and more specific textual content.
     * 
     * @since 9.5RC1
     */
    public static final String DATA_TEXT = "text";

    /**
     * Generic WIKI XML Syntax.
     */
    public static final FilterStreamType FILTER_XML = new FilterStreamType(SystemType.FILTER, DATA_XML);

    /**
     * The XAR format in version 1.1.
     *
     * @since 6.2M1
     */
    public static final FilterStreamType XWIKI_XAR_11 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.1");

    /**
     * The XAR format in version 1.2.
     *
     * @since 7.2M1
     */
    public static final FilterStreamType XWIKI_XAR_12 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.2");

    /**
     * The XAR format in version 1.3.
     *
     * @since 9.0RC1
     */
    public static final FilterStreamType XWIKI_XAR_13 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.3");

    /**
     * The XAR format in version 1.4.
     *
     * @since 14.0RC1
     */
    public static final FilterStreamType XWIKI_XAR_14 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.4");

    /**
     * The XAR format in version 1.5.
     *
     * @since 14.0RC1
     */
    public static final FilterStreamType XWIKI_XAR_15 = new FilterStreamType(SystemType.XWIKI, DATA_XAR, "1.5");

    /**
     * The XAR format in the current version.
     *
     * @since 7.2M1
     */
    public static final FilterStreamType XWIKI_XAR_CURRENT = XWIKI_XAR_15;

    /**
     * The database stream based on oldcore APIs.
     */
    public static final FilterStreamType XWIKI_INSTANCE = new FilterStreamType(SystemType.XWIKI, "instance");

    /**
     * The Confluence XML format.
     */
    public static final FilterStreamType CONFLUENCE_XML = new FilterStreamType(SystemType.CONFLUENCE, DATA_XML);

    /**
     * The MediaWiki XML format.
     */
    public static final FilterStreamType MEDIAWIKI_XML = new FilterStreamType(SystemType.MEDIAWIKI, DATA_XML);

    /**
     * The DokuWiki data format.
     * 
     * @since 9.5RC1
     */
    public static final FilterStreamType DOKUWIKI_TEXT = new FilterStreamType(SystemType.DOKUWIKI, DATA_TEXT);

    /**
     * Wiki type.
     */
    private SystemType type;

    /**
     * Export data format.
     */
{'fraction_non_alphanumeric': 0.087740225314778, 'fraction_numerical': 0.01802518223989397, 'mean_word_length': 2.746772591857001, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '24159', 'n_tokens_mistral': 2373, 'n_tokens_neox': 2259, 'n_words': 778}