<commit_before><?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="error" type="errorDetails"/>

  <xs:element name="reference" type="reference"/>

  <xs:element name="rule" type="rule"/>

  <xs:element name="ruleId" type="ruleId"/>

  <xs:element name="variable" type="variable"/>

  <xs:complexType name="validationProfile" final="extension restriction">
    <xs:sequence>
      <xs:element name="details" type="profileDetails" minOccurs="0"/>
      <xs:element name="hash" type="xs:string" minOccurs="0"/>
      <xs:element name="rules" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="rule" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="variables" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="variable" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="flavour" type="pdfaFlavour"/>
  </xs:complexType>

  <xs:complexType name="profileDetails" final="extension restriction">
    <xs:sequence>
      <xs:element name="name" type="xs:string" minOccurs="0"/>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="creator" type="xs:string"/>
    <xs:attribute name="created" type="xs:dateTime"/>
  </xs:complexType>

  <xs:complexType name="rule" final="extension restriction">
    <xs:sequence>
      <xs:element name="id" type="ruleId" minOccurs="0"/>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
      <xs:element name="test" type="xs:string" minOccurs="0"/>
      <xs:element ref="error" minOccurs="0"/>
      <xs:element name="references" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="reference" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="object" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="ruleId" final="extension restriction">
    <xs:sequence/>
    <xs:attribute name="specification" type="specification"/>
    <xs:attribute name="clause" type="xs:string"/>
    <xs:attribute name="testNumber" type="xs:int" use="required"/>
  </xs:complexType>

  <xs:complexType name="errorDetails" final="extension restriction">
    <xs:sequence>
      <xs:element name="message" type="xs:string" minOccurs="0"/>
      <xs:element name="arguments" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="argument" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="reference" final="extension restriction">
    <xs:sequence/>
    <xs:attribute name="specification" type="xs:string"/>
    <xs:attribute name="clause" type="xs:string"/>
  </xs:complexType>

  <xs:complexType name="variable" final="extension restriction">
    <xs:sequence>
      <xs:element name="defaultValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string"/>
    <xs:attribute name="object" type="xs:string"/>
  </xs:complexType>

  <xs:simpleType name="pdfaFlavour">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NO_FLAVOUR"/>
      <xs:enumeration value="PDFA_1_A"/>
      <xs:enumeration value="PDFA_1_B"/>
      <xs:enumeration value="PDFA_2_A"/>
      <xs:enumeration value="PDFA_2_B"/>
      <xs:enumeration value="PDFA_2_U"/>
      <xs:enumeration value="PDFA_3_A"/>
      <xs:enumeration value="PDFA_3_B"/>
      <xs:enumeration value="PDFA_3_U"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="specification">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NO_STANDARD"/>
      <xs:enumeration value="ISO_19005_1"/>
      <xs:enumeration value="ISO_19005_2"/>
      <xs:enumeration value="ISO_19005_3"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema><commit_msg>Fixed Profile / Result schema confusion.<commit_after><?xml version="1.0" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="location" type="location"/>

  <xs:element name="ruleId" type="ruleId"/>

  <xs:element name="testAssertion" type="testAssertion"/>

  <xs:element name="validationResult" type="validationResult"/>

  <xs:complexType name="validationResult" final="extension restriction">
    <xs:sequence>
      <xs:element name="assertions" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="assertion" type="testAssertion" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="flavour" type="pdfaFlavour"/>
    <xs:attribute name="totalAssertions" type="xs:int" use="required"/>
    <xs:attribute name="isCompliant" type="xs:boolean" use="required"/>
  </xs:complexType>

  <xs:complexType name="testAssertion" final="extension restriction">
    <xs:sequence>
      <xs:element ref="ruleId" minOccurs="0"/>
      <xs:element name="message" type="xs:string" minOccurs="0"/>
      <xs:element ref="location" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="ordinal" type="xs:int" use="required"/>
    <xs:attribute name="status" type="status"/>
  </xs:complexType>

  <xs:complexType name="ruleId" final="extension restriction">
    <xs:sequence/>
    <xs:attribute name="specification" type="specification"/>
    <xs:attribute name="clause" type="xs:string"/>
    <xs:attribute name="testNumber" type="xs:int" use="required"/>
  </xs:complexType>

  <xs:complexType name="location" final="extension restriction">
    <xs:sequence>
      <xs:element name="level" type="xs:string" minOccurs="0"/>
      <xs:element name="context" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:simpleType name="pdfaFlavour">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NO_FLAVOUR"/>
      <xs:enumeration value="PDFA_1_A"/>
      <xs:enumeration value="PDFA_1_B"/>
      <xs:enumeration value="PDFA_2_A"/>
      <xs:enumeration value="PDFA_2_B"/>
      <xs:enumeration value="PDFA_2_U"/>
      <xs:enumeration value="PDFA_3_A"/>
      <xs:enumeration value="PDFA_3_B"/>
      <xs:enumeration value="PDFA_3_U"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="specification">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NO_STANDARD"/>
      <xs:enumeration value="ISO_19005_1"/>
      <xs:enumeration value="ISO_19005_2"/>
      <xs:enumeration value="ISO_19005_3"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="status">
    <xs:restriction base="xs:string">
      <xs:enumeration value="PASSED"/>
      <xs:enumeration value="FAILED"/>
      <xs:enumeration value="UNKNOWN"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
{'fraction_non_alphanumeric': 0.18180565127498277, 'fraction_numerical': 0.01323225361819435, 'mean_word_length': 4.160739687055477, 'pattern_counts': {'":': 0, '<': 178, '<?xml version=': 2, '>': 178, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '7488502', 'n_tokens_mistral': 2486, 'n_tokens_neox': 2378, 'n_words': 391}