<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon"
	version="1.1">
	<xsl:strip-space elements="*" />
	<xsl:output method="xml" indent="yes" encoding="UTF-8" />

	<xsl:template match="package">
		<xsl:document href="xml/{@name}.xml" method="xml" indent="yes"
			encoding="UTF-8">
			<html>
				<head>
					<title>
						<xsl:value-of select="@name" />
					</title>
				</head>
				<body>
					<h1 class="Heading1">
						<xsl:value-of select="@name" />
						<a name="{@fqn}" />
						<a index="{@fqn}" />
						<a name="package:{@fqn}" />
					</h1>
					<xsl:apply-templates select=".//formattingerror" />
					<xsl:apply-templates select="description" mode="html" />
					<xsl:variable name="classes" select="class[not(skip)]" />
					<xsl:if test="count($classes)!=1">
						<h2 class="Heading2">Summary</h2>
						<xsl:apply-templates select="$classes" mode="index">
							<xsl:sort select="@name" />
						</xsl:apply-templates>

						<xsl:if test="//security">
							<h2 class="Heading2">Permissions</h2>
							<xsl:for-each select="$classes">
								<xsl:if test="method/security">
									<h3 class="Heading3">
										<a href="#{@name}">
											<xsl:value-of select="@name" />
										</a>
									</h3>
									<xsl:for-each select="method[security]">
										<p class="Bulleted">
											<code>
												<a href="@qn"><xsl:value-of select="@name" /><xsl:value-of select="@flatSignature" /></a>
											</code>
										</p>
										<xsl:for-each select="security">
											<p class="Bulleted2">
												<code><xsl:value-of select="@name" />[<xsl:value-of select="@resource" />,<xsl:value-of select="@actions" />]</code>
												–
												<xsl:value-of select="." />
											</p>
										</xsl:for-each>
									</xsl:for-each>
								</xsl:if>
							</xsl:for-each>
						</xsl:if>
					</xsl:if>
					<xsl:call-template name="descriptors">
						<xsl:with-param name="target" select="." />
					</xsl:call-template>
					<xsl:apply-templates select="$classes">
						<xsl:sort select="@name" />
					</xsl:apply-templates><commit_msg>Skipped kastlijntje where security had no content<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon"
	version="1.1">
	<xsl:strip-space elements="*" />
	<xsl:output method="xml" indent="yes" encoding="UTF-8" />

	<xsl:template match="package">
		<xsl:document href="xml/{@name}.xml" method="xml" indent="yes"
			encoding="UTF-8">
			<html>
				<head>
					<title>
						<xsl:value-of select="@name" />
					</title>
				</head>
				<body>
					<h1 class="Heading1">
						<xsl:value-of select="@name" />
						<a name="{@fqn}" />
						<a index="{@fqn}" />
						<a name="package:{@fqn}" />
					</h1>
					<xsl:apply-templates select=".//formattingerror" />
					<xsl:apply-templates select="description" mode="html" />
					<xsl:variable name="classes" select="class[not(skip)]" />
					<xsl:if test="count($classes)!=1">
						<h2 class="Heading2">Summary</h2>
						<xsl:apply-templates select="$classes" mode="index">
							<xsl:sort select="@name" />
						</xsl:apply-templates>

						<xsl:if test="//security">
							<h2 class="Heading2">Permissions</h2>
							<xsl:for-each select="$classes">
								<xsl:if test="method/security">
									<h3 class="Heading3">
										<a href="#{@name}">
											<xsl:value-of select="@name" />
										</a>
									</h3>
									<xsl:for-each select="method[security]">
										<p class="Bulleted">
											<code>
												<a href="@qn"><xsl:value-of select="@name" /><xsl:value-of select="@flatSignature" /></a>
											</code>
										</p>
										<xsl:for-each select="security">
											<p class="Bulleted2">
												<code><xsl:value-of select="@name" />[<xsl:value-of select="@resource" />,<xsl:value-of select="@actions" />]</code>
												<xsl:if test="normalize(.)">
													–
													<xsl:value-of select="." />
												</xsl:value-of>
											</p>
										</xsl:for-each>
									</xsl:for-each>
								</xsl:if>
							</xsl:for-each>
						</xsl:if>
					</xsl:if>
					<xsl:call-template name="descriptors">
						<xsl:with-param name="target" select="." />
					</xsl:call-template>
					<xsl:apply-templates select="$classes">
						<xsl:sort select="@name" />
					</xsl:apply-templates>
{'fraction_non_alphanumeric': 0.21504907306434023, 'fraction_numerical': 0.011341330425299891, 'mean_word_length': 2.5087987758224943, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 2, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, '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': '3713417', 'n_tokens_mistral': 2389, 'n_tokens_neox': 1570, 'n_words': 246}