<commit_before><?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"
  
  xmlns:sqf="http://www.schematron-quickfix.com/validator/process">
  
  <sch:ns uri="http://www.w3.org/1999/xlink"       prefix="xlink"/>
  <sch:ns uri="http://www.w3.org/1998/Math/MathML" prefix="mml"/>

  <sch:pattern>
    <sch:rule context="book-part | sec | fig | table-wrap | boxed-text | disp-formula | statement">
      <sch:assert test="matches(@id,'\S')" role="warning">Missing @id</sch:assert>
      <sqf:fix id="add-id">
        <sqf:description>
          <sqf:title>Add ID</sqf:title>
        </sqf:description>
        <sqf:user-entry name="user-id">
          <sqf:description>
            <sqf:title>ID (unique within document scope)</sqf:title>
          </sqf:description>
        </sqf:user-entry>
        
        <!--<sqf:user-entry name="newName">
          <sqf:description>
            <sqf:title>Enter the new name.</sqf:title>
          </sqf:description>
        </sqf:user-entry>-->
        <!--<sqf:replace target="{$newName}" node-type="pi">
        	<value-of select="."/>
       </sqf:replace>-->
        
        <!--<sqf:replace use-when="exists(@id)" node-type="attribute"  match="id" target="id">
          <sch:value-of select="$id"/>
        </sqf:replace>-->
        <!--<sqf:add use-when="empty(@id)" node-type="attribute" match="id" target="id">
          <sch:value-of select="$id"/>
        </sqf:add>-->
        <sqf:add node-type="attribute" target="id" select="@id">
          <sch:value-of select="$user-id"/>
        </sqf:add><commit_msg>Trying a couple more things<commit_after><?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"
  
  xmlns:sqf="http://www.schematron-quickfix.com/validator/process">
  
  <sch:ns uri="http://www.w3.org/1999/xlink"       prefix="xlink"/>
  <sch:ns uri="http://www.w3.org/1998/Math/MathML" prefix="mml"/>

  <sch:pattern>
    <sch:rule context="book-part | sec | fig | table-wrap | boxed-text | disp-formula | statement">
      <sch:assert test="matches(@id,'\S')" role="warning">Missing @id</sch:assert>
      <sqf:fix id="add-id">
        <sqf:description>
          <sqf:title>Add ID</sqf:title>
        </sqf:description>
        <sqf:user-entry name="user-id">
          <sqf:description>
            <sqf:title>ID</sqf:title>
          </sqf:description>
        </sqf:user-entry>
        
        <!--<sqf:user-entry name="newName">
          <sqf:description>
            <sqf:title>Enter the new name.</sqf:title>
          </sqf:description>
        </sqf:user-entry>-->
        <!--<sqf:replace target="{$newName}" node-type="pi">
        	<value-of select="."/>
       </sqf:replace>-->
        
        <!--<sqf:replace use-when="exists(@id)" node-type="attribute"  match="id" target="id">
          <sch:value-of select="$id"/>
        </sqf:replace>-->
        <!--<sqf:add use-when="empty(@id)" node-type="attribute" match="id" target="id">
          <sch:value-of select="$id"/>
        </sqf:add>-->
        <sqf:add node-type="attribute" target="id" select="@id">
          <sch:value-of select="$user-id"/>
        </sqf:add>
{'fraction_non_alphanumeric': 0.211306765523633, 'fraction_numerical': 0.008649984553599012, 'mean_word_length': 2.577900552486188, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 85, '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': '2987148', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1127, 'n_words': 159}