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

	<target name="getMajorMinorVersion">
		<script language="javascript">
			<![CDATA[

	                // getting the value
	                buildnumber = project.getProperty("unqualifiedVersion");
	                index = buildnumber.lastIndexOf(".");
	                counter = buildnumber.substring(0, index);
	    			project.setProperty("majorMinorVersion",counter);

	            ]]>
		</script>
	</target>

	<target name="test_getMajorMinor" depends="getMajorMinorVersion">
		<echo message="majorMinorVersion: ${majorMinorVersion}" />
	</target>

	<!--
		site.label						The name/title/label of the created composite site
		unqualifiedVersion 				The version without any qualifier replacement
		buildQualifier					The build qualifier
		child.repository.path.prefix	The path prefix to access the actual p2 repo from the
										child repo, e.g., if child repo is in /updates/1.0 and
										the p2 repo is in /releases/1.0.0.something then this property
										should be "../../releases/"
	-->
	<target name="compute.child.repository.data" depends="getMajorMinorVersion">
		<property name="full.version" value="${unqualifiedVersion}.${buildQualifier}" />

		<property name="site.composite.name" value="${site.label} ${majorMinorVersion}" />
		<property name="main.site.composite.name" value="${site.label} All Versions" />

		<!-- composite.base.dir	The base directory for the local composite metadata,
			e.g., from Maven, ${project.build.directory}
		-->
		<property name="composite.base.dir" value="target"/>

		<property name="main.composite.repository.directory" location="${composite.base.dir}/composite-main" />
		<property name="composite.repository.directory" location="${composite.base.dir}/composite-child" />

		<property name="child.repository" value="${child.repository.path.prefix}${full.version}" />
	</target>

	<target name="p2.composite.add" depends="compute.child.repository.data">
		<add.composite.repository.internal composite.repository.location="${main.composite.repository.directory}" composite.repository.name="${main.site.composite.name}" composite.repository.child="${majorMinorVersion}" />
		<add.composite.repository.internal composite.repository.location="${composite.repository.directory}" composite.repository.name="${site.composite.name}" composite.repository.child="${child.repository}" />
	</target>

	<!-- = = = = = = = = = = = = = = = = =
          macrodef: add.composite.repository.internal          
         = = = = = = = = = = = = = = = = = -->
	<macrodef name="add.composite.repository.internal">
		<attribute name="composite.repository.location" />
		<attribute name="composite.repository.name" />
		<attribute name="composite.repository.child" />
		<sequential>

			<echo message=" " />
			<echo message="Composite repository       : @{composite.repository.location}" />
			<echo message="Composite name             : @{composite.repository.name}" />
			<echo message="Adding child repository    : @{composite.repository.child}" />

			<p2.composite.repository>
				<repository compressed="false" location="@{composite.repository.location}" name="@{composite.repository.name}" />
				<add>
					<repository location="@{composite.repository.child}" />
				</add>
			</p2.composite.repository>

			<echo file="@{composite.repository.location}/p2.index">version=1
metadata.repository.factory.order=compositeContent.xml,\!
artifact.repository.factory.order=compositeArtifacts.xml,\!
</echo>

		</sequential>
	</macrodef>


</project>

<commit_msg>Removed leading dot of full version when no version qualifier is present<commit_after><?xml version="1.0"?>
<project name="project">

	<target name="getMajorMinorVersion">
		<script language="javascript">
			<![CDATA[

	                // getting the value
	                buildnumber = project.getProperty("unqualifiedVersion");
	                index = buildnumber.lastIndexOf(".");
	                counter = buildnumber.substring(0, index);
	    			project.setProperty("majorMinorVersion",counter);

	            ]]>
		</script>
	</target>

	<target name="test_getMajorMinor" depends="getMajorMinorVersion">
		<echo message="majorMinorVersion: ${majorMinorVersion}" />
	</target>

	<!--
		site.label						The name/title/label of the created composite site
		unqualifiedVersion 				The version without any qualifier replacement
		buildQualifier					The build qualifier
		child.repository.path.prefix	The path prefix to access the actual p2 repo from the
										child repo, e.g., if child repo is in /updates/1.0 and
										the p2 repo is in /releases/1.0.0.something then this property
										should be "../../releases/"
	-->
	<target name="compute.child.repository.data" depends="getMajorMinorVersion">
		<condition property="full.version" value="${unqualifiedVersion}.${buildQualifier}" else="${unqualifiedVersion}">
			<isset property="buildQualifier"/>
		</condition>

		<property name="site.composite.name" value="${site.label} ${majorMinorVersion}" />
		<property name="main.site.composite.name" value="${site.label} All Versions" />

		<!-- composite.base.dir	The base directory for the local composite metadata,
			e.g., from Maven, ${project.build.directory}
		-->
		<property name="composite.base.dir" value="target"/>

		<property name="main.composite.repository.directory" location="${composite.base.dir}/composite-main" />
		<property name="composite.repository.directory" location="${composite.base.dir}/composite-child" />

		<property name="child.repository" value="${child.repository.path.prefix}${full.version}" />
	</target>

	<target name="p2.composite.add" depends="compute.child.repository.data">
		<add.composite.repository.internal composite.repository.location="${main.composite.repository.directory}" composite.repository.name="${main.site.composite.name}" composite.repository.child="${majorMinorVersion}" />
		<add.composite.repository.internal composite.repository.location="${composite.repository.directory}" composite.repository.name="${site.composite.name}" composite.repository.child="${child.repository}" />
	</target>

	<!-- = = = = = = = = = = = = = = = = =
          macrodef: add.composite.repository.internal          
         = = = = = = = = = = = = = = = = = -->
	<macrodef name="add.composite.repository.internal">
		<attribute name="composite.repository.location" />
		<attribute name="composite.repository.name" />
		<attribute name="composite.repository.child" />
		<sequential>

			<echo message=" " />
			<echo message="Composite repository       : @{composite.repository.location}" />
			<echo message="Composite name             : @{composite.repository.name}" />
			<echo message="Adding child repository    : @{composite.repository.child}" />

			<p2.composite.repository>
				<repository compressed="false" location="@{composite.repository.location}" name="@{composite.repository.name}" />
				<add>
					<repository location="@{composite.repository.child}" />
				</add>
			</p2.composite.repository>

			<echo file="@{composite.repository.location}/p2.index">version=1
metadata.repository.factory.order=compositeContent.xml,\!
artifact.repository.factory.order=compositeArtifacts.xml,\!
</echo>

		</sequential>
	</macrodef>


</project>


{'fraction_non_alphanumeric': 0.1592847317744154, 'fraction_numerical': 0.0041265474552957355, 'mean_word_length': 3.870060281312793, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5834420', 'n_tokens_mistral': 2313, 'n_tokens_neox': 2039, 'n_words': 373}