<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="#all" version="2.0">
	<xsl:param name="compare"/>
	<xsl:param name="ignore"/>
	<xsl:variable name="tokens" select="tokenize($compare, ',')"/>
	
	<xsl:template match="/">
		<select multiple="multiple" size="10" class="compare-select">
			<xsl:apply-templates select="descendant::doc[not(str[@name='nudsid']=$ignore)]"/>
		</select>
	</xsl:template>

	<xsl:template match="doc">
		<xsl:variable name="id" select="str[@name='nudsid']"/>
		<option value="{$id}" class="compare-option">
			<xsl:if test="boolean(index-of($tokens, $id))">
				<xsl:attribute name="selected">selected</xsl:attribute>
			</xsl:if>
			
			<xsl:value-of select="str[@name='title_display']"/>
		</option>
	</xsl:template>
</xsl:stylesheet><commit_msg>synching to bug fix in CHRR<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="#all" version="2.0">
	<xsl:param name="compare"/>
	<xsl:variable name="tokens" select="tokenize($compare, ',')"/>
	
	<xsl:template match="/">
		<select multiple="multiple" size="10" class="compare-select">
			<xsl:apply-templates select="descendant::doc"/>
		</select>
	</xsl:template>

	<xsl:template match="doc">
		<xsl:variable name="id" select="str[@name='nudsid']"/>
		<option value="{$id}" class="compare-option">
			<xsl:for-each select="$tokens[.=$id]">
				<xsl:attribute name="selected">selected</xsl:attribute>
			</xsl:for-each>
			
			<xsl:value-of select="str[@name='title_display']"/>
		</option>
	</xsl:template>
</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.23433088650479955, 'fraction_numerical': 0.019198193111236588, 'mean_word_length': 6.2326530612244895, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 2, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '1858660', 'n_tokens_mistral': 707, 'n_tokens_neox': 611, 'n_words': 89}