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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>

<xsl:template name="menu">
	<div>
		<xsl:attribute name="class">context-menu
			<xsl:if test="./*[@hotkey]">hasHotkeys</xsl:if>
			<xsl:if test="@pointTo"><xsl:value-of select="@pointTo"/></xsl:if>
		</xsl:attribute><div class="cntnr">
		<xsl:for-each select="./*">
			<xsl:choose>
				<xsl:when test="@type='divider'"><div class="divider">&#160;</div></xsl:when>
				<xsl:otherwise>
					<div>
						<xsl:attribute name="data-id"><xsl:value-of select="@_id"/></xsl:attribute>
						<xsl:attribute name="class">LIVE menu-item
							<xsl:if test="count(./*) &gt; 0 or @invoke">hasSub</xsl:if>
							<xsl:if test="@checked = '1'">checked</xsl:if>
							<xsl:if test="@disabled">disabled</xsl:if>
						</xsl:attribute><xsl:value-of select="@name"/>
						<xsl:if test="@hotkey"><span><xsl:value-of select="@hotkey"/></span></xsl:if>
					</div>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</div></div>
</xsl:template>

<xsl:template name="assets">
	<xsl:for-each select=".//assets/*">
		<li>
			<xsl:attribute name="data-asset_id"><xsl:value-of select="@id"/></xsl:attribute>
			<figure>
				<xsl:attribute name="style">background-image: url(<xsl:value-of select="@source"/>);</xsl:attribute>
				&#160;</figure>
			<span><xsl:value-of select="@name"/></span>
		</li>
	</xsl:for-each>
</xsl:template>

<xsl:template name="timeline_left">
	<xsl:for-each select=".//timeline/layer">
		<xsl:sort order="ascending" select="@index"/>
		<li data-track="parent" data-cmd="timeline -s make_track_active">
			<div data-dblclick="timeline -s dblclick_layer" data-context="tl_track">
				<xsl:attribute name="data-track_id">track_<xsl:value-of select="@id"/></xsl:attribute>
				<xsl:attribute name="data-asset_id"><xsl:value-of select="@asset_id"/></xsl:attribute>
				<xsl:attribute name="class">
					tl_layer <xsl:if test="@hidden = 1"> is_hidden</xsl:if>
				</xsl:attribute>
				<figure data-cmd="timeline -s toggle_visible">
					<xsl:attribute name="class"><xsl:choose>
						<xsl:when test="@hidden = 1">icon-eye_off</xsl:when>
						<xsl:otherwise>icon-eye_on</xsl:otherwise>
					</xsl:choose></xsl:attribute>
					&#160;</figure>
				<figure class="icon-arrow_down" data-cmd="timeline -s toggle_layer">&#160;</figure>
				<span class="layer_name"><xsl:value-of select="//file/assets/*[@id=current()/@asset_id]/@name"/></span>
			</div>

            <ul class="brushes">
				<xsl:for-each select="./brush">
				<li data-context="tl_anim_track">
					<xsl:attribute name="class">
						<xsl:if test="@hidden = 1">is_hidden</xsl:if>
						<xsl:if test="@id = ../../@active">active</xsl:if>
					</xsl:attribute>
					<xsl:attribute name="data-track_id">brush_<xsl:value-of select="@id"/></xsl:attribute>
					<figure data-cmd="timeline -s toggle_visible">
						<xsl:attribute name="class"><xsl:choose>
							<xsl:when test="@hidden = 1">icon-eye_off</xsl:when>
							<xsl:otherwise>icon-eye_on</xsl:otherwise>
						</xsl:choose></xsl:attribute>
						&#160;</figure>
					<figure class="icon-trashcan right">&#160;</figure>
					<span><xsl:value-of select="@name"/></span>
				</li>
				</xsl:for-each>
			</ul>

		</li>
	</xsl:for-each>
</xsl:template>

<xsl:template name="timeline_right">
	<xsl:for-each select=".//timeline/layer">
		<xsl:sort order="ascending" select="@index"/>
		<li data-track="parent" data-cmd="timeline -s make_track_active">

			<div data-context="tl_track">
				<xsl:attribute name="data-track_id">track_<xsl:value-of select="@id"/></xsl:attribute>
				<xsl:attribute name="class">
					track_parent <xsl:if test="@hidden = 1"> is_hidden</xsl:if>
				</xsl:attribute>
				<xsl:attribute name="style">
					margin-left: <xsl:value-of select="@start * 16"/>px;
					width: <xsl:value-of select="(@length * 16)-1"/>px;<commit_msg>adjustment<commit_after><?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>

<xsl:template name="menu">
	<div>
		<xsl:attribute name="class">context-menu
			<xsl:if test="./*[@hotkey]">hasHotkeys</xsl:if>
			<xsl:if test="@pointTo"><xsl:value-of select="@pointTo"/></xsl:if>
		</xsl:attribute><div class="cntnr">
		<xsl:for-each select="./*">
			<xsl:choose>
				<xsl:when test="@type='divider'"><div class="divider">&#160;</div></xsl:when>
				<xsl:otherwise>
					<div>
						<xsl:attribute name="data-id"><xsl:value-of select="@_id"/></xsl:attribute>
						<xsl:attribute name="class">LIVE menu-item
							<xsl:if test="count(./*) &gt; 0 or @invoke">hasSub</xsl:if>
							<xsl:if test="@checked = '1'">checked</xsl:if>
							<xsl:if test="@disabled">disabled</xsl:if>
						</xsl:attribute><xsl:value-of select="@name"/>
						<xsl:if test="@hotkey"><span><xsl:value-of select="@hotkey"/></span></xsl:if>
					</div>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</div></div>
</xsl:template>

<xsl:template name="assets">
	<xsl:for-each select=".//assets/*">
		<li>
			<xsl:attribute name="data-asset_id"><xsl:value-of select="@id"/></xsl:attribute>
			<figure>
				<xsl:attribute name="style">background-image: url(<xsl:value-of select="@source"/>);</xsl:attribute>
				&#160;</figure>
			<span><xsl:value-of select="@name"/></span>
		</li>
	</xsl:for-each>
</xsl:template>

<xsl:template name="timeline_left">
	<xsl:for-each select=".//timeline/layer">
		<xsl:sort order="ascending" select="@index"/>
		<li data-track="parent" data-cmd="timeline -s make_track_active">
			<div data-dblclick="timeline -s dblclick_layer" data-context="tl_track">
				<xsl:attribute name="data-track_id">track_<xsl:value-of select="@id"/></xsl:attribute>
				<xsl:attribute name="data-asset_id"><xsl:value-of select="@asset_id"/></xsl:attribute>
				<xsl:attribute name="class">
					tl_layer <xsl:if test="@hidden = 1"> is_hidden</xsl:if>
				</xsl:attribute>
				<figure data-cmd="timeline -s toggle_visible">
					<xsl:attribute name="class"><xsl:choose>
						<xsl:when test="@hidden = 1">icon-eye_off</xsl:when>
						<xsl:otherwise>icon-eye_on</xsl:otherwise>
					</xsl:choose></xsl:attribute>
					&#160;</figure>
				<figure class="icon-arrow_down" data-cmd="timeline -s toggle_layer">&#160;</figure>
				<span class="layer_name"><xsl:value-of select="//file/assets/*[@id=current()/@asset_id]/@name"/></span>
			</div>

            <ul class="brushes">
				<xsl:for-each select="./brush">
				<li data-context="tl_anim_track">
					<xsl:attribute name="class">
						<xsl:if test="@hidden = 1">is_hidden</xsl:if>
						<xsl:if test="@id = ../../@active">active</xsl:if>
					</xsl:attribute>
					<xsl:attribute name="data-track_id">brush_<xsl:value-of select="@id"/></xsl:attribute>
					<figure data-cmd="timeline -s toggle_visible">
						<xsl:attribute name="class"><xsl:choose>
							<xsl:when test="@hidden = 1">icon-eye_off</xsl:when>
							<xsl:otherwise>icon-eye_on</xsl:otherwise>
						</xsl:choose></xsl:attribute>
						&#160;</figure>
					<figure class="icon-trashcan right">&#160;</figure>
					<span><xsl:value-of select="@name"/></span>
				</li>
				</xsl:for-each>
			</ul>

		</li>
	</xsl:for-each>
</xsl:template>

<xsl:template name="timeline_right">
	<xsl:for-each select=".//timeline/layer">
		<xsl:sort order="ascending" select="@index"/>
		<li data-track="parent" data-cmd="timeline -s make_track_active" data-context="tl_track">

			<div>
				<xsl:attribute name="data-track_id">track_<xsl:value-of select="@id"/></xsl:attribute>
				<xsl:attribute name="class">
					track_parent <xsl:if test="@hidden = 1"> is_hidden</xsl:if>
				</xsl:attribute>
				<xsl:attribute name="style">
					margin-left: <xsl:value-of select="@start * 16"/>px;
					width: <xsl:value-of select="(@length * 16)-1"/>px;
{'fraction_non_alphanumeric': 0.22732433455279424, 'fraction_numerical': 0.010092090324208401, 'mean_word_length': 4.433858807402331, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 2, '>': 287, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '2941480', 'n_tokens_mistral': 3641, 'n_tokens_neox': 2789, 'n_words': 409}