<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nomisma="http://nomisma.org/"
	exclude-result-prefixes="#all">
	<xsl:include href="metamodel-templates.xsl"/>
	<xsl:include href="sparql-metamodel.xsl"/>

	<!-- request parameters -->
	<xsl:param name="filter" select="doc('input:filter')/query"/>
	<xsl:param name="dist" select="doc('input:request')/request/parameters/parameter[name = 'dist']/value"/>
	<xsl:param name="format" select="doc('input:request')/request/parameters/parameter[name = 'format']/value"/>

	<!-- config variables -->
	<xsl:variable name="sparql_endpoint" select="/config/sparql_query"/>
	<xsl:variable name="query" select="doc('input:query')"/>

	<!-- parse query statements into a data object -->
	<xsl:variable name="statements" as="element()*">
		<statements>
			<!-- parse filters -->
			<xsl:call-template name="nomisma:filterToMetamodel">
				<xsl:with-param name="subject">?coinType</xsl:with-param>
				<xsl:with-param name="filter" select="$filter"/>
			</xsl:call-template>

			<!-- parse dist -->
			<xsl:call-template name="nomisma:distToMetamodel">
				<xsl:with-param name="object">?dist</xsl:with-param>
				<xsl:with-param name="dist" select="$dist"/>
			</xsl:call-template>
		</statements><commit_msg>added lat and long back into CSV<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:nomisma="http://nomisma.org/"
	exclude-result-prefixes="#all">
	<xsl:include href="metamodel-templates.xsl"/>
	<xsl:include href="sparql-metamodel.xsl"/>

	<!-- request parameters -->
	<xsl:param name="filter" select="doc('input:filter')/query"/>
	<xsl:param name="dist" select="doc('input:request')/request/parameters/parameter[name = 'dist']/value"/>
	<xsl:param name="format" select="doc('input:request')/request/parameters/parameter[name = 'format']/value"/>

	<!-- config variables -->
	<xsl:variable name="sparql_endpoint" select="/config/sparql_query"/>
	<xsl:variable name="query" select="doc('input:query')"/>

	<!-- parse query statements into a data object -->
	<xsl:variable name="statements" as="element()*">
		<statements>
			<!-- parse filters -->
			<xsl:call-template name="nomisma:filterToMetamodel">
				<xsl:with-param name="subject">?coinType</xsl:with-param>
				<xsl:with-param name="filter" select="$filter"/>
			</xsl:call-template>

			<!-- parse dist -->
			<xsl:call-template name="nomisma:distToMetamodel">
				<xsl:with-param name="object">?dist</xsl:with-param>
				<xsl:with-param name="dist" select="$dist"/>
			</xsl:call-template>
			
			<xsl:if test="$dist='nmo:hasMint' and $format='csv'">
				<optional>
					<triple s="?dist" p="geo:location" o="?loc"/>
					<triple s="?loc" p="geo:lat" o="?lat"/>
					<triple s="?loc" p="geo:long" o="?long"/>
				</optional>
			</xsl:if>
		</statements>
{'fraction_non_alphanumeric': 0.21960914210003313, 'fraction_numerical': 0.009937065253395164, 'mean_word_length': 5.188524590163935, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 2, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, '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': '4735292', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1009, 'n_words': 156}