<commit_before><?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
		version="1.0">

	<x:import href="schema.common.xsl" />

	<x:output method="text" />

	<x:param name="engine" select="'postgre'" />

	<x:template name="print-type">
		<x:call-template name="assert-has-type" />

		<x:choose>
			<x:when test="@type = 'int64'">
				<x:text>bigint</x:text>
			</x:when>
			<x:when test="@type = 'uuid'">
				<x:text>uuid</x:text>
			</x:when>
			<x:when test="@type = 'xml'">
				<x:text>xml</x:text>
			</x:when>
			<x:otherwise>
				<x:call-template name="print-type-common" />
			</x:otherwise>
		</x:choose>
	</x:template>

	<x:template name="sql-drop-table">
		<x:param name="name" />

		<x:text>DROP TABLE IF EXISTS </x:text>
		<x:value-of select="." />
		<x:text> CASCADE;&#xA;</x:text>
	</x:template>

	<x:template name="sql-drop-view">
		<x:param name="name" />

		<x:text>DROP VIEW IF EXISTS </x:text>
		<x:value-of select="." />
		<x:text> CASCADE;&#xA;</x:text>
	</x:template>

	<x:template match="/">
		<x:apply-templates select="database" mode="to-file">
			<x:with-param name="suffix" select="'-postgre'" />
		</x:apply-templates>
	</x:template>

</x:stylesheet><commit_msg>tools: schema: generate EOL by template new-line<commit_after><?xml version="1.0" encoding="utf-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
		version="1.0">

	<x:import href="schema.common.xsl" />

	<x:output method="text" />

	<x:param name="engine" select="'postgre'" />

	<x:template name="print-type">
		<x:call-template name="assert-has-type" />

		<x:choose>
			<x:when test="@type = 'int64'">
				<x:text>bigint</x:text>
			</x:when>
			<x:when test="@type = 'uuid'">
				<x:text>uuid</x:text>
			</x:when>
			<x:when test="@type = 'xml'">
				<x:text>xml</x:text>
			</x:when>
			<x:otherwise>
				<x:call-template name="print-type-common" />
			</x:otherwise>
		</x:choose>
	</x:template>

	<x:template name="sql-drop-table">
		<x:param name="name" />

		<x:text>DROP TABLE IF EXISTS </x:text>
		<x:value-of select="." />
		<x:text> CASCADE;</x:text>
		<x:call-template name="new-line" />
	</x:template>

	<x:template name="sql-drop-view">
		<x:param name="name" />

		<x:text>DROP VIEW IF EXISTS </x:text>
		<x:value-of select="." />
		<x:text> CASCADE;</x:text>
		<x:call-template name="new-line" />
	</x:template>

	<x:template match="/">
		<x:apply-templates select="database" mode="to-file">
			<x:with-param name="suffix" select="'-postgre'" />
		</x:apply-templates>
	</x:template>

</x:stylesheet>
{'fraction_non_alphanumeric': 0.24465188642551536, 'fraction_numerical': 0.009334889148191364, 'mean_word_length': 4.0234375, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '230359', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1050, 'n_words': 165}