<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:gml="http://www.opengis.net/gml"
           xmlns="http://openquake.org/xmlns/nrml/0.3"
           targetNamespace="http://openquake.org/xmlns/nrml/0.3"
           elementFormDefault="qualified"
           xml:lang="en">

    <xs:import namespace="http://www.opengis.net/gml" schemaLocation="../gml/gmlsf.xsd"/>

    <!--
         Abbreviations used:
            - ffs: fragility function set
            - ffc: fragility function (continuous)
            - ffd: fragility function (discrete)
    -->

    <!-- Top-level element for Fragility model definitions. -->
    <xs:element name="fragilityModel" type="FragilityModel" substitutionGroup="gml:_Feature"/>
    <xs:complexType name="FragilityModel">
        <xs:complexContent>
            <xs:extension base="gml:AbstractFeatureType">
                <!-- The format of the functions in this fragility model,
                     one of: discrete, continuous -->
                <xs:sequence>
                    <xs:element name="IML" type="IMLType" minOccurs="0" maxOccurs="1" />
                    <xs:element name="limitStates" type="LimitStates" minOccurs="1" maxOccurs="1" />
                    <xs:element ref="ffs" minOccurs="1" maxOccurs="unbounded" />
                </xs:sequence>
                <xs:attribute name="format" type="Fmformat" use="required"/>
                <xs:attribute name="imlUnit" type="xs:string" use="optional"/>
                <xs:attribute name="minIML" type="NonNegativeDoubleType" use="optional"/>
                <xs:attribute name="maxIML" type="NonNegativeDoubleType" use="optional"/>
                <xs:attribute name="noDamageLimit" type="NonNegativeDoubleType" use="optional"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:simpleType name="LimitStates">
        <xs:restriction base="StringList"><commit_msg>added doc for noDamageLimit optional attribute<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:gml="http://www.opengis.net/gml"
           xmlns="http://openquake.org/xmlns/nrml/0.3"
           targetNamespace="http://openquake.org/xmlns/nrml/0.3"
           elementFormDefault="qualified"
           xml:lang="en">

    <xs:import namespace="http://www.opengis.net/gml" schemaLocation="../gml/gmlsf.xsd"/>

    <!--
         Abbreviations used:
            - ffs: fragility function set
            - ffc: fragility function (continuous)
            - ffd: fragility function (discrete)
    -->

    <!-- Top-level element for Fragility model definitions. -->
    <xs:element name="fragilityModel" type="FragilityModel" substitutionGroup="gml:_Feature"/>
    <xs:complexType name="FragilityModel">
        <xs:complexContent>
            <xs:extension base="gml:AbstractFeatureType">
                <!-- The format of the functions in this fragility model,
                     one of: discrete, continuous -->
                <xs:sequence>
                    <xs:element name="IML" type="IMLType" minOccurs="0" maxOccurs="1" />
                    <xs:element name="limitStates" type="LimitStates" minOccurs="1" maxOccurs="1" />
                    <xs:element ref="ffs" minOccurs="1" maxOccurs="unbounded" />
                </xs:sequence>
                <xs:attribute name="format" type="Fmformat" use="required"/>
                <xs:attribute name="imlUnit" type="xs:string" use="optional"/>
                <xs:attribute name="minIML" type="NonNegativeDoubleType" use="optional"/>
                <xs:attribute name="maxIML" type="NonNegativeDoubleType" use="optional"/>
                <!-- noDamageLimit defines the IML after which damage is observed -->
                <xs:attribute name="noDamageLimit" type="NonNegativeDoubleType" use="optional"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:simpleType name="LimitStates">
        <xs:restriction base="StringList">
{'fraction_non_alphanumeric': 0.14768552534900808, 'fraction_numerical': 0.008327210384521186, 'mean_word_length': 2.469838572642311, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 2, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 14}, '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': '4791449', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1160, 'n_words': 209}