<commit_before><project name="org.eclipse.paho.sample.utility" default="full">

	<description>Builds a redistributable JAR and documentation for the Paho Java client.</description>

    	<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>

	<property name="property.file" value="antbuild.properties"/>
	<property file="${property.file}"/>

	<property name="source.folder" value="./" />
	<property name="output.folder" value="./target/work" />
	<property name="ship.folder" value="./target/ship" />

	<property name="paho-utility-jar" value="org.eclipse.paho.sample.utility.jar" />
	<property name="paho-client-jar" value="/home/icraggs/util/org.eclipse.paho.client.mqttv3.jar" />
	<property name="build.level" value="LYYMMDD" />

	<!-- these should be moved to properties file if required -->
	<property name="javac_target" value="1.2" />
	<property name="javac_source" value="1.2" />
	<property name="javac_debug" value="on" />
	<property name="javac_debuglevel" value="lines,vars,source" />

	<target name="init">
		<mkdir dir="${output.folder}/src" />
		<mkdir dir="${output.folder}/bin" />
	</target>
	
	<target name="updateManifest" description="Update manifest file.">
		<manifest file="${folder}/main/resources/META-INF/MANIFEST.MF" mode="update">
			<attribute name="Bundle-Version" value="${bundleVersion}" />
			<attribute name="Bundle-Vendor" value="${bundleVendor}" />
			<attribute name="Bundle-ManifestVersion" value="2" />
			<attribute name="Bundle-ClassPath" value="${bundle_classpath}" />
			<attribute name="Implementation-Version" value="${client.release.version}" />
			<attribute name="Build-Level" value="${build.level}" />
		</manifest>
<!--		<if><isset property="jar.copyright"/>
			<then>
				<manifest file="${folder}/META-INF/MANIFEST.MF" mode="update">
					<attribute name="Bundle-Copyright" value="${jar.copyright}" />
				</manifest>
			</then>
		</if> -->
	</target>

	<target name="compile" depends="init" description="Compile Java classes.">
		<echo>Compiling client library...</echo>
		<copy overwrite="true" todir="${output.folder}/src">
			<fileset dir="${source.folder}/src" />
		</copy>

		 <replace file="${output.folder}/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java"
			token="@@BUILDLEVEL@@"
			value="${build.level}"/>
		<replace file="${output.folder}/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java"
			token="@@VERSION@@"
			value="${client.release.version}"/>

		<javac srcdir="${output.folder}/src"
		    destdir="${output.folder}/bin"
		    source="${javac_source}"
		    target="${javac_target}"
		    debug="${javac_debug}"
		    debuglevel="${javac_debuglevel}"
                    classpath="${paho-client-jar}"
		    includeantruntime="false" >
		</javac>

		<!-- Copy additional source files to the output tree -->
		<copy overwrite="true" todir="${output.folder}/bin">
			<fileset dir="${source.folder}">
				<include name="META-INF/*" />
			</fileset>
			<fileset dir="${source.folder}/src">
				<include name="**/*.properties" /><commit_msg>Update directories which have moved<commit_after><project name="org.eclipse.paho.sample.utility" default="full">

	<description>Builds a redistributable JAR and documentation for the Paho Java client.</description>

    	<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>

	<property name="property.file" value="antbuild.properties"/>
	<property file="${property.file}"/>

	<property name="source.folder" value="./" />
	<property name="output.folder" value="./target/work" />
	<property name="ship.folder" value="./target/ship" />

	<property name="paho-utility-jar" value="org.eclipse.paho.sample.utility.jar" />
	<property name="paho-client-jar" value="/home/icraggs/util/org.eclipse.paho.client.mqttv3.jar" />
	<property name="build.level" value="LYYMMDD" />

	<!-- these should be moved to properties file if required -->
	<property name="javac_target" value="1.2" />
	<property name="javac_source" value="1.2" />
	<property name="javac_debug" value="on" />
	<property name="javac_debuglevel" value="lines,vars,source" />

	<target name="init">
		<mkdir dir="${output.folder}/src" />
		<mkdir dir="${output.folder}/bin" />
	</target>
	
	<target name="updateManifest" description="Update manifest file.">
		<manifest file="${folder}/main/resources/META-INF/MANIFEST.MF" mode="update">
			<attribute name="Bundle-Version" value="${bundleVersion}" />
			<attribute name="Bundle-Vendor" value="${bundleVendor}" />
			<attribute name="Bundle-ManifestVersion" value="2" />
			<attribute name="Bundle-ClassPath" value="${bundle_classpath}" />
			<attribute name="Implementation-Version" value="${client.release.version}" />
			<attribute name="Build-Level" value="${build.level}" />
		</manifest>
<!--		<if><isset property="jar.copyright"/>
			<then>
				<manifest file="${folder}/META-INF/MANIFEST.MF" mode="update">
					<attribute name="Bundle-Copyright" value="${jar.copyright}" />
				</manifest>
			</then>
		</if> -->
	</target>

	<target name="compile" depends="init" description="Compile Java classes.">
		<echo>Compiling client library...</echo>
		<copy overwrite="true" todir="${output.folder}/src">
			<fileset dir="${source.folder}/src" />
		</copy>

		<replace file="${output.folder}/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java"
			token="@@BUILDLEVEL@@"
			value="${build.level}"/>
		<replace file="${output.folder}/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java"
			token="@@VERSION@@"
			value="${client.release.version}"/>

		<javac srcdir="${output.folder}/src"
		    destdir="${output.folder}/bin"
		    source="${javac_source}"
		    target="${javac_target}"
		    debug="${javac_debug}"
		    debuglevel="${javac_debuglevel}"
                    classpath="${paho-client-jar}"
		    includeantruntime="false" >
		</javac>

		<!-- Copy additional source files to the output tree -->
		<copy overwrite="true" todir="${output.folder}/bin/main/resources">
			<fileset dir="${source.folder}/src/main/resources">
				<include name="META-INF/*" />
			</fileset>
			<fileset dir="${source.folder}/src/main/resources">
				<include name="**/*.properties" />
{'fraction_non_alphanumeric': 0.2005530253741054, 'fraction_numerical': 0.001951854261548471, 'mean_word_length': 4.534653465346534, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7379423', 'n_tokens_mistral': 2119, 'n_tokens_neox': 1913, 'n_words': 324}