<commit_before><?xml version='1.0' encoding="UTF-8"?>
<!-- fo.xsl - XSLT stylesheet - DocBook customization layer for Orc PDF documents

     $Id$

     Copyright (c) 2011 The University of Texas at Austin. All rights reserved.

     Use and redistribution of this file is governed by the license terms in
     the LICENSE file found in the project's top-level directory and also found at
     URL: http://orc.csres.utexas.edu/license.shtml .
  -->

<xsl:stylesheet xmlns:xslthl="http://xslthl.sf.net"
	exclude-result-prefixes="xslthl" xmlns:fo="http://www.w3.org/1999/XSL/Format"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:import href="../../docbook-xsl/fo/docbook.xsl" />

	<!-- Enable DocBook syntax highlighting extension -->
	<xsl:import href="../../docbook-xsl/fo/highlight.xsl" />

	<!-- Enable syntax highlighting of code elements -->
	<xsl:import href="highlighting.xsl" />

	<xsl:output method="xml" indent="no" />

	<xsl:attribute-set name="section.level1.properties">
		<xsl:attribute name="break-before">page</xsl:attribute>
	</xsl:attribute-set>

	<!-- Add site properties for the site library using the <sitepropset> tag -->
	<xsl:template match="sitepropset">
		<fo:block>
			<xsl:for-each select="siteprop">
				<xsl:if test="@propname='indefinite'">
					<fo:inline background-color="#CC0000" color="#FFFFFF"
						space-end="1em" padding="0.17em"> Indefinite </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='definite'">
					<fo:inline background-color="#00CC00" color="#FFFFFF"
						space-end="1em" padding="0.17em"> Definite </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='idempotent'">
					<fo:inline background-color="#0000CC" color="#FFFFFF"
						space-end="1em" padding="0.17em"> Idempotent </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='pure'">
					<fo:inline background-color="#6600FF" color="#FFFFFF"
						space-end="1em" padding="0.17em"> Pure </fo:inline>
				</xsl:if>
			</xsl:for-each>
		</fo:block>
	</xsl:template>


	<xsl:template match='xslthl:literal' mode="xslthl">
		<xsl:apply-templates mode="xslthl" />
	</xsl:template>

	<xsl:template match='xslthl:combinator' mode="xslthl">
		<fo:inline font-weight="bold">
			<xsl:apply-templates mode="xslthl" />
		</fo:inline>
	</xsl:template>
	<xsl:template match='xslthl:combinator[text()="FATBAR"]'
		mode="xslthl">
		<fo:inline font-family="ZapfDingbats">&#x2759;</fo:inline><commit_msg>Siteprop text in boldface in PDF<commit_after><?xml version='1.0' encoding="UTF-8"?>
<!-- fo.xsl - XSLT stylesheet - DocBook customization layer for Orc PDF documents

     $Id$

     Copyright (c) 2011 The University of Texas at Austin. All rights reserved.

     Use and redistribution of this file is governed by the license terms in
     the LICENSE file found in the project's top-level directory and also found at
     URL: http://orc.csres.utexas.edu/license.shtml .
  -->

<xsl:stylesheet xmlns:xslthl="http://xslthl.sf.net"
	exclude-result-prefixes="xslthl" xmlns:fo="http://www.w3.org/1999/XSL/Format"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:import href="../../docbook-xsl/fo/docbook.xsl" />

	<!-- Enable DocBook syntax highlighting extension -->
	<xsl:import href="../../docbook-xsl/fo/highlight.xsl" />

	<!-- Enable syntax highlighting of code elements -->
	<xsl:import href="highlighting.xsl" />

	<xsl:output method="xml" indent="no" />

	<xsl:attribute-set name="section.level1.properties">
		<xsl:attribute name="break-before">page</xsl:attribute>
	</xsl:attribute-set>

	<!-- Add site properties for the site library using the <sitepropset> tag -->
	<xsl:template match="sitepropset">
		<fo:block>
			<xsl:for-each select="siteprop">
				<xsl:if test="@propname='indefinite'">
					<fo:inline background-color="#CC0000" color="#FFFFFF"
						font-weight="bold" space-end="1em" padding="0.17em"> Indefinite </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='definite'">
					<fo:inline background-color="#00CC00" color="#FFFFFF"
						font-weight="bold" space-end="1em" padding="0.17em"> Definite </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='idempotent'">
					<fo:inline background-color="#0000CC" color="#FFFFFF"
						font-weight="bold" space-end="1em" padding="0.17em"> Idempotent </fo:inline>
				</xsl:if>
				<xsl:if test="@propname='pure'">
					<fo:inline background-color="#6600FF" color="#FFFFFF"
						font-weight="bold" space-end="1em" padding="0.17em"> Pure </fo:inline>
				</xsl:if>
			</xsl:for-each>
		</fo:block>
	</xsl:template>


	<xsl:template match='xslthl:literal' mode="xslthl">
		<xsl:apply-templates mode="xslthl" />
	</xsl:template>

	<xsl:template match='xslthl:combinator' mode="xslthl">
		<fo:inline font-weight="bold">
			<xsl:apply-templates mode="xslthl" />
		</fo:inline>
	</xsl:template>
	<xsl:template match='xslthl:combinator[text()="FATBAR"]'
		mode="xslthl">
		<fo:inline font-family="ZapfDingbats">&#x2759;</fo:inline>
{'fraction_non_alphanumeric': 0.1868819374369324, 'fraction_numerical': 0.02260343087790111, 'mean_word_length': 4.317596566523605, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, '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': '7282193', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1697, 'n_words': 336}