<commit_before><xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:tei="http://www.tei-c.org/ns/1.0"
  version="2.0"
>

<xsl:key name="I" use="@oucsCode" match="*"/>

<xsl:output method="xml" indent="yes" encoding="utf-8"/>


<xsl:template match="/">
    <xsl:for-each select="//tei:place">
      <xsl:if test="not(@type)">
	<xsl:message>Place <xsl:value-of
	select="@oxpCode"/>/<xsl:value-of select="@oucsCode"/> has no	type attribute</xsl:message>
      </xsl:if>
      <xsl:if test="(@type='building' and not(../tei:geo)) and not(parent::tei:place)">
	<xsl:message>Place <xsl:value-of
	select="tei:placeName"/>: <xsl:value-of
	select="@obnCode"/>/<xsl:value-of select="@oucsCode"/> has no location</xsl:message>
      </xsl:if>
    </xsl:for-each>
  <xsl:for-each select="//tei:relation">
    <xsl:if test="not(key('I',substring-after(@passive,'#')))">
      <xsl:message>cannot find anything to point <xsl:value-of
      select="@passive"/> at</xsl:message>
    </xsl:if>
    <xsl:if test="not(key('I',substring-after(@active,'#')))">
      <xsl:message>cannot find anything to point <xsl:value-of
      select="@active"/> at</xsl:message>
    </xsl:if>
  </xsl:for-each>
</xsl:template>

<commit_msg>check script<commit_after><xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:tei="http://www.tei-c.org/ns/1.0"
  version="2.0"
>

<xsl:key name="I" use="@oucsCode" match="*"/>

<xsl:output method="xml" indent="yes" encoding="utf-8"/>


<xsl:template match="/">
    <xsl:for-each select="//tei:place">
      <xsl:if test="not(@type)">
	<xsl:message>Place <xsl:value-of
	select="@oxpCode"/>/<xsl:value-of select="@oucsCode"/> has no	type attribute</xsl:message>
      </xsl:if>
      <xsl:if test="(@type='building' and not(.//tei:geo))">
	<xsl:message>Place <xsl:value-of
	select="tei:placeName"/>: <xsl:value-of
	select="@obnCode"/>/<xsl:value-of select="@oucsCode"/> has no location</xsl:message>
      </xsl:if>
    </xsl:for-each>
  <xsl:for-each select="//tei:relation">
    <xsl:if test="not(key('I',substring-after(@passive,'#')))">
      <xsl:message>cannot find anything to point <xsl:value-of
      select="@passive"/> at</xsl:message>
    </xsl:if>
    <xsl:if test="not(key('I',substring-after(@active,'#')))">
      <xsl:message>cannot find anything to point <xsl:value-of
      select="@active"/> at</xsl:message>
    </xsl:if>
  </xsl:for-each>
</xsl:template>


{'fraction_non_alphanumeric': 0.23560855263157895, 'fraction_numerical': 0.008223684210526315, 'mean_word_length': 4.406666666666666, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '83094', 'n_tokens_mistral': 1019, 'n_tokens_neox': 913, 'n_words': 139}