<commit_before><?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:output method="html" />
	
	<xsl:template match="/japicmp">
		<html>
			<head>
				<title>japicmp (oldJar: <xsl:value-of select="@oldJar"/>, newJar: <xsl:value-of select="@newJar"/>)</title>
				<style type="text/css">
                    body {
                        font-family: Verdana;
                    }
                    .title {
                        font-weight: bold;
                    }
					.new {
						color: green;
					}
					.removed {
						color: red;
					}
					.modified {
						color: orange;
					}
					.unchanged {
						color: black;
					}
					thead tr td {
                        font-weight: bold;
                    }
                    .toc {
                        margin-top: 1em;
                        margin-bottom: 1em;
                        border: 1px solid #dcdcdc;
                        padding: 5px;
                        background: #ededed;
                        display: inline-block;
                    }
                    table {
                        border-collapse: collapse;
                    }
                    table tr td {
                        border: 1px solid black;
                        padding: 5px;
                    }
                    table thead {
                        background-color: #dee3e9;
                    }
                    .class {
                        margin-bottom: 2em;
                        border: 1px solid #dcdcdc;
                        padding: 5px;
                        background: #ededed;
                        display: inline-block;
                    }
                    .class_superclass {
                        margin-top: 1em;
                    }
                    .class_interfaces {
                        margin-top: 1em;
                    }
                    .class_constructors {
                        margin-top: 1em;
                    }
                    .class_methods {
                        margin-top: 1em;
                    }
                    .class_annotations {
                        margin-top: 1em;
                    }
                    .label {
                        font-weight: bold;
                    }
                    .label_class_member {
                        background-color: #4d7a97;
                        display: inline-block;
                        padding: 5px;
                    }
                    .toc_link {
                        margin-left: 10px;
                        font-size: 0.5em;
                    }
                    .modifier {
                        font-style: italic;
                    }
                    ul {
                        list-style-type: none;
                        padding: 0px 0px;
                    }
				</style>
			</head>
			<body>
                <span class="title">JApiCmp-Report</span><br/>
                <span>old=<xsl:value-of select="@oldJar"/></span><br/>
                <span>new=<xsl:value-of select="@newJar"/></span><br/>
                <ul>
                    <xsl:if test="count(classes/class) > 0">
                        <li><a href="#toc">Classes</a></li>
                    </xsl:if>
                </ul>
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="classes">
		<div class="toc">
            <a name="toc"/>
            <span class="label">Classes:</span>
            <table>
                <thead>
                    <tr>
                        <td>Status</td>
                        <td>Fully Qualified Name</td>
                    </tr>
                </thead>
                <tbody>
                    <xsl:apply-templates select="class" mode="toc"><xsl:sort select="@fullyQualifiedName"/></xsl:apply-templates>
                </tbody>
            </table>
		</div>
        <div>
            <xsl:apply-templates select="class" mode="detail"><xsl:sort select="@fullyQualifiedName"/></xsl:apply-templates>
        </div>
	</xsl:template>
	
	<xsl:template match="class" mode="toc">
        <tr>
            <td>
                <xsl:call-template name="outputChangeStatus"/>
            </td>
            <td>
                <a>
                    <xsl:attribute name="href">#<xsl:value-of select="@fullyQualifiedName"/></xsl:attribute>
                    <xsl:value-of select="@fullyQualifiedName" />
                </a>
            </td>
        </tr>
	</xsl:template>

    <xsl:template match="class" mode="detail">
        <div>
            <div class="class">
                <div class="class_header">
                    <span class="label">
                        <a>
                            <xsl:attribute name="name">
                                <xsl:value-of select="@fullyQualifiedName" />
                            </xsl:attribute>
                        </a>
                        <xsl:call-template name="outputChangeStatus"/>&#160;
                        <xsl:call-template name="modifiers"/>
                        <xsl:value-of select="translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')" />&#160;
                        <xsl:value-of select="@fullyQualifiedName" />
                    </span>
                    <a href="#toc" class="toc_link">top</a>
                </div>
                <div class="class_superclass">
                    <xsl:if test="count(superclass) > 0 and (superclass/@superclassNew != 'n.a.' or superclass/@superclassOld != 'n.a.')">
                        <span class="label_class_member">Superclass:</span>
                        <table>
                            <thead>
                                <tr>
                                    <td>Status</td>
                                    <td>Superclass</td>
                                </tr>
                            </thead>
                            <tbody>
                                <xsl:apply-templates select="superclass" />
                            </tbody>
                        </table>
                    </xsl:if>
                </div>
                <div class="class_interfaces"><commit_msg>#gh-33 HTML report now outputs creation timestamp and does not show unchanged superclasses<commit_after><?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:output method="html" />
	
	<xsl:template match="/japicmp">
		<html>
			<head>
				<title>japicmp (oldJar: <xsl:value-of select="@oldJar"/>, newJar: <xsl:value-of select="@newJar"/>)</title>
				<style type="text/css">
                    body {
                        font-family: Verdana;
                    }
                    .title {
                        font-weight: bold;
                    }
					.new {
						color: green;
					}
					.removed {
						color: red;
					}
					.modified {
						color: orange;
					}
					.unchanged {
						color: black;
					}
					thead tr td {
                        font-weight: bold;
                    }
                    .toc {
                        margin-top: 1em;
                        margin-bottom: 1em;
                        border: 1px solid #dcdcdc;
                        padding: 5px;
                        background: #ededed;
                        display: inline-block;
                    }
                    table {
                        border-collapse: collapse;
                    }
                    table tr td {
                        border: 1px solid black;
                        padding: 5px;
                    }
                    table thead {
                        background-color: #dee3e9;
                    }
                    .class {
                        margin-bottom: 2em;
                        border: 1px solid #dcdcdc;
                        padding: 5px;
                        background: #ededed;
                        display: inline-block;
                    }
                    .class_superclass {
                        margin-top: 1em;
                    }
                    .class_interfaces {
                        margin-top: 1em;
                    }
                    .class_constructors {
                        margin-top: 1em;
                    }
                    .class_methods {
                        margin-top: 1em;
                    }
                    .class_annotations {
                        margin-top: 1em;
                    }
                    .label {
                        font-weight: bold;
                    }
                    .label_class_member {
                        background-color: #4d7a97;
                        display: inline-block;
                        padding: 5px;
                    }
                    .toc_link {
                        margin-left: 10px;
                        font-size: 0.5em;
                    }
                    .modifier {
                        font-style: italic;
                    }
                    ul {
                        list-style-type: none;
                        padding: 0px 0px;
                    }
                    .meta-information {
                        margin-top: 1em;
                        margin-bottom: 1em;
                        background: #ededed;
                        display: inline-block;
                    }
				</style>
			</head>
			<body>
                <span class="title">JApiCmp-Report</span><br/>
                <div class="meta-information">
                    <table>
                        <tr>
                            <td>Old:</td>
                            <td><xsl:value-of select="@oldJar"/></td>
                        </tr>
                        <tr>
                            <td>New:</td>
                            <td><xsl:value-of select="@newJar"/></td>
                        </tr>
                        <tr>
                            <td>Created:</td>
                            <td><xsl:value-of select="@creationTimestamp"/></td>
                        </tr>
                    </table>
                </div>
                <ul>
                    <xsl:if test="count(classes/class) > 0">
                        <li><a href="#toc">Classes</a></li>
                    </xsl:if>
                </ul>
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="classes">
		<div class="toc">
            <a name="toc"/>
            <span class="label">Classes:</span>
            <table>
                <thead>
                    <tr>
                        <td>Status</td>
                        <td>Fully Qualified Name</td>
                    </tr>
                </thead>
                <tbody>
                    <xsl:apply-templates select="class" mode="toc"><xsl:sort select="@fullyQualifiedName"/></xsl:apply-templates>
                </tbody>
            </table>
		</div>
        <div>
            <xsl:apply-templates select="class" mode="detail"><xsl:sort select="@fullyQualifiedName"/></xsl:apply-templates>
        </div>
	</xsl:template>
	
	<xsl:template match="class" mode="toc">
        <tr>
            <td>
                <xsl:call-template name="outputChangeStatus"/>
            </td>
            <td>
                <a>
                    <xsl:attribute name="href">#<xsl:value-of select="@fullyQualifiedName"/></xsl:attribute>
                    <xsl:value-of select="@fullyQualifiedName" />
                </a>
            </td>
        </tr>
	</xsl:template>

    <xsl:template match="class" mode="detail">
        <div>
            <div class="class">
                <div class="class_header">
                    <span class="label">
                        <a>
                            <xsl:attribute name="name">
                                <xsl:value-of select="@fullyQualifiedName" />
                            </xsl:attribute>
                        </a>
                        <xsl:call-template name="outputChangeStatus"/>&#160;
                        <xsl:call-template name="modifiers"/>
                        <xsl:value-of select="translate(@type,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')" />&#160;
                        <xsl:value-of select="@fullyQualifiedName" />
                    </span>
                    <a href="#toc" class="toc_link">top</a>
                </div>
                <div class="class_superclass">
                    <xsl:if test="count(superclass) > 0 and (superclass/@superclassNew != 'n.a.' or superclass/@superclassOld != 'n.a.') and superclass/@changeStatus != 'UNCHANGED'">
                        <span class="label_class_member">Superclass:</span>
                        <table>
                            <thead>
                                <tr>
                                    <td>Status</td>
                                    <td>Superclass</td>
                                </tr>
                            </thead>
                            <tbody>
                                <xsl:apply-templates select="superclass" />
                            </tbody>
                        </table>
                    </xsl:if>
                </div>
                <div class="class_interfaces">
{'fraction_non_alphanumeric': 0.11577693395875215, 'fraction_numerical': 0.006849825031643214, 'mean_word_length': 0.8392441462412707, 'pattern_counts': {'":': 0, '<': 254, '<?xml version=': 2, '>': 258, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6421627', 'n_tokens_mistral': 3810, 'n_tokens_neox': 3178, 'n_words': 557}