<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--

 Author: <NAME> <<EMAIL>>

 Copyright (c) 2014 BBC

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="xhtml db xi xlink">

  	<xsl:output omit-xml-declaration="yes" encoding="utf-8" indent="no" />

	<xsl:include href="block.xsl" />	
	<xsl:include href="inline.xsl" />
	<xsl:include href="doc.xsl" />	
	<xsl:include href="toc.xsl" />	

	<!-- HTML5 doctype -->
	<xsl:template name="html.doctype">
		<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html>]]></xsl:text>
	</xsl:template>
	
	<!-- HTML5 meta elements -->
	<xsl:template name="html.meta">
		<xsl:text disable-output-escaping="yes"><![CDATA[
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />
			<meta charset="utf-8" />
			<!--[if lt IE 9]><script>document.createElement('header');document.createElement('nav');document.createElement('section');document.createElement('article');document.createElement('aside');document.createElement('footer');</script><![endif]-->
		]]></xsl:text>
	</xsl:template>

	<!-- HTML5 stylesheets -->
	<xsl:param name="html.linksfile" select="''" />
	<xsl:template name="html.links">
	  <xsl:if test="normalize-space($html.linksfile) != ''">
		<xsl:call-template name="include-xml">
		  <xsl:with-param name="uri" select="$html.linksfile" />
		</xsl:call-template>
	  </xsl:if>
	</xsl:template>

	<!-- HTML5 scripts -->
	<xsl:template name="html.scripts" />

	<!-- Global navigation -->
	<xsl:param name="html.navfile" select="''" />
	<xsl:template name="html.globalnav">
		<xsl:if test="normalize-space($html.navfile) != ''">
			<nav class="global"><div class="inner">
				<xsl:call-template name="include-xml">
					<xsl:with-param name="uri" select="$html.navfile" />
				</xsl:call-template>
			</div></nav>			
		</xsl:if>
	</xsl:template>

	<!-- Masthead -->
	<xsl:template name="html.masthead">
		<xsl:text disable-output-escaping="yes"><![CDATA[
		<div class="masthead"></div>
		]]></xsl:text>
	</xsl:template>

	<!-- Utilities -->
	<xsl:template name="include-xml">
	  <xsl:param name="uri" />
	  <xsl:message>Including source file <xsl:value-of select="$uri" /></xsl:message>
	  <xsl:copy-of select="document($uri)/include/*" disable-output-escaping="yes" />
	</xsl:template>
	
</xsl:stylesheet>
<commit_msg>Add html.ie78css param (to specify URI to IE 7/8-specific CSS)<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--

 Author: <NAME> <<EMAIL>>

 Copyright (c) 2014 BBC

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="xhtml db xi xlink">

  	<xsl:output omit-xml-declaration="yes" encoding="utf-8" indent="no" />

	<xsl:include href="block.xsl" />	
	<xsl:include href="inline.xsl" />
	<xsl:include href="doc.xsl" />	
	<xsl:include href="toc.xsl" />	

	<!-- HTML5 doctype -->
	<xsl:template name="html.doctype">
		<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html>]]></xsl:text>
	</xsl:template>
	
	<!-- HTML5 meta elements -->
	<xsl:template name="html.meta">
		<xsl:text disable-output-escaping="yes"><![CDATA[
			<meta http-equiv="X-UA-Compatible" content="IE=edge" />
			<meta charset="utf-8" />
			<!--[if lt IE 9]><script>document.createElement('header');document.createElement('nav');document.createElement('section');document.createElement('article');document.createElement('aside');document.createElement('footer');</script><![endif]-->
		]]></xsl:text>
	</xsl:template>

	<!-- HTML5 stylesheets -->
	<xsl:param name="html.linksfile" select="''" />
	<xsl:param name="html.ie78css" select="''" />
	<xsl:template name="html.links">
	  <xsl:if test="normalize-space($html.linksfile) != ''">
		<xsl:call-template name="include-xml">
		  <xsl:with-param name="uri" select="$html.linksfile" />
		</xsl:call-template>
	  </xsl:if>
	  <xsl:if test="normalize-space($html.ie78css) != ''">
		  <xsl:text disable-output-escaping="yes"><![CDATA[<!--[if lt IE 9]><link rel="stylesheet" type="text/css" href="]]></xsl:text>
		  <xsl:value-of select="$html.ie78css" />
		  <xsl:text disable-output-escaping="yes"><![CDATA[" /><![endif]-->]]></xsl:text>
	  </xsl:if>
	</xsl:template>

	<!-- HTML5 scripts -->
	<xsl:template name="html.scripts" />

	<!-- Global navigation -->
	<xsl:param name="html.navfile" select="''" />
	<xsl:template name="html.globalnav">
		<xsl:if test="normalize-space($html.navfile) != ''">
			<nav class="global"><div class="inner">
				<xsl:call-template name="include-xml">
					<xsl:with-param name="uri" select="$html.navfile" />
				</xsl:call-template>
			</div></nav>			
		</xsl:if>
	</xsl:template>

	<!-- Masthead -->
	<xsl:template name="html.masthead">
		<xsl:text disable-output-escaping="yes"><![CDATA[
		<div class="masthead"></div>
		]]></xsl:text>
	</xsl:template>

	<!-- Utilities -->
	<xsl:template name="include-xml">
	  <xsl:param name="uri" />
	  <xsl:message>Including source file <xsl:value-of select="$uri" /></xsl:message>
	  <xsl:copy-of select="document($uri)/include/*" disable-output-escaping="yes" />
	</xsl:template>
	
</xsl:stylesheet>

{'fraction_non_alphanumeric': 0.20543528327959465, 'fraction_numerical': 0.013972055888223553, 'mean_word_length': 4.543829787234043, 'pattern_counts': {'":': 0, '<': 158, '<?xml version=': 2, '>': 158, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 20}, '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': '2833725', 'n_tokens_mistral': 2471, 'n_tokens_neox': 2151, 'n_words': 436}