<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.kantega.no" xmlns="http://www.kantega.no" elementFormDefault="qualified">
    <xs:element name="template">
        <xs:complexType>
            <xs:all minOccurs="0">
                <xs:element ref="helptext" maxOccurs="1"/>
                <xs:element ref="attributes" maxOccurs="1" minOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element name="attributes">
        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" ref="attribute" minOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="attribute">
        <xs:complexType>
            <xs:all minOccurs="0">
                <xs:element ref="helptext" maxOccurs="1"/>
                <xs:element ref="options" maxOccurs="1"/>
                <xs:element ref="script" maxOccurs="1"/>
            </xs:all>
            <xs:attribute name="contenttemplate" type="xs:string"/>
            <xs:attribute name="documenttype" type="xs:string"/>
            <xs:attribute name="default"  type="xs:string"/>
            <xs:attribute name="displaytemplate" type="xs:string"/>
            <xs:attribute name="editable">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="false"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="editablebyrole" type="xs:string"/>
            <xs:attribute name="listeditablebyrole" type="xs:string"/>
	        <xs:attribute name="enumclass" type="xs:string"/>
            <xs:attribute name="featureset" type="xs:string"/>
            <xs:attribute name="minifeatureset" type="xs:string"/>
            <xs:attribute name="height" type="xs:integer"/>
            <xs:attribute name="width" type="xs:integer"/>
            <xs:attribute name="mediafolder" type="xs:string"/>            
            <xs:attribute name="hideinsites" type="xs:string"/>
            <xs:attribute name="ignorevariant"><commit_msg>AP-969: Schema change to ease validation (should be possible to use helptext without having to use options for an attribute)<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.kantega.no" xmlns="http://www.kantega.no" elementFormDefault="qualified">
    <xs:element name="template">
        <xs:complexType>
            <xs:all minOccurs="0">
                <xs:element ref="helptext" maxOccurs="1"/>
                <xs:element ref="attributes" maxOccurs="1" minOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element name="attributes">
        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" ref="attribute" minOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="attribute">
        <xs:complexType>
            <xs:all minOccurs="0">
                <xs:element ref="helptext" maxOccurs="1" minOccurs="0"/>
                <xs:element ref="options" maxOccurs="1" minOccurs="0"/>
                <xs:element ref="script" maxOccurs="1" minOccurs="0"/>
            </xs:all>
            <xs:attribute name="contenttemplate" type="xs:string"/>
            <xs:attribute name="documenttype" type="xs:string"/>
            <xs:attribute name="default"  type="xs:string"/>
            <xs:attribute name="displaytemplate" type="xs:string"/>
            <xs:attribute name="editable">
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="false"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="editablebyrole" type="xs:string"/>
            <xs:attribute name="listeditablebyrole" type="xs:string"/>
	        <xs:attribute name="enumclass" type="xs:string"/>
            <xs:attribute name="featureset" type="xs:string"/>
            <xs:attribute name="minifeatureset" type="xs:string"/>
            <xs:attribute name="height" type="xs:integer"/>
            <xs:attribute name="width" type="xs:integer"/>
            <xs:attribute name="mediafolder" type="xs:string"/>            
            <xs:attribute name="hideinsites" type="xs:string"/>
            <xs:attribute name="ignorevariant">
{'fraction_non_alphanumeric': 0.16287139449143354, 'fraction_numerical': 0.01040988939492518, 'mean_word_length': 2.371345029239766, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 2, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '778128', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1304, 'n_words': 221}