<commit_before><?xml version="1.0"?>
<project name="form-translator" default="compile">
	
	<property name="base.dir" location="." />
	<property name="root.dir" location="../../" />
	<property name="lib.dir" location="${root.dir}/lib/" />
	<property name="build.dir" location="build" />
	<property name="build.debug" value="on" />
	<property name="build.deprecation" value="on" />

	<property name="compile.source" value="true" />	
	
	<target name="init">
		<tstamp/>
		<tstamp>
			<format property="YEAR" pattern="yyyy" />
		</tstamp>
		
		<condition property="compile.from.source.true">
			<equals arg1="${compile.source}" arg2="true" />
		</condition>		
	</target>
	
	<target name="buildcore" if="compile.from.source.true">
		<ant antfile="${root.dir}/core/build.xml" target="package" inheritAll="false" inheritRefs="false" />
		<copy file="${root.dir}/core/dist/javarosa-libraries.jar" todir="${base.dir}/tools/" />
	</target>
	
	<target name="buildClean" depends="clean,compile" />

	<target name="clean">
		<delete dir="${build.dir}" />
	</target>

	<target name="jar" depends="javac">
		<jar jarfile="${build.dir}/form_translate.jar">
			<zipfileset dir="${build.dir}/classes" prefix="" />
			<zipfileset src="${base.dir}/tools/javarosa-libraries.jar" />
			<zipfileset src="${lib.dir}/kxml2-2.3.0.jar" />
			<zipfileset src="${base.dir}/lib/xpp3-1.1.4.jar" />
			<zipfileset src="${base.dir}/lib/json-simple-1.1.1.jar" />
			<fileset dir="${build.dir}/classes" />
			<manifest>
				<attribute name="Specification-Version" value="${version}" />
				<attribute name="Implementation-Version" value="${TODAY}" />
				<attribute name="Main-Class" value="org.javarosa.xform.schema.Harness" />
			</manifest>
		</jar>
	</target>
	
	<target name="javac" depends="init">
		<mkdir dir="${build.dir}/classes"/>
		<mkdir dir="${build.dir}/src"/>
		<copy todir="${build.dir}/src">
			<fileset dir="${base.dir}/src/" />
		</copy>

		<javac 
			srcdir="${build.dir}/src"
			destdir="${build.dir}/classes" 
			classpath="${base.dir}/tools/javarosa-libraries.jar;${lib.dir}/kxml2-2.3.0.jar;${base.dir}/lib/xpp3-1.1.4.jar"
			includeAntRuntime="false"<commit_msg>Missed another library addition<commit_after><?xml version="1.0"?>
<project name="form-translator" default="compile">
	
	<property name="base.dir" location="." />
	<property name="root.dir" location="../../" />
	<property name="lib.dir" location="${root.dir}/lib/" />
	<property name="build.dir" location="build" />
	<property name="build.debug" value="on" />
	<property name="build.deprecation" value="on" />

	<property name="compile.source" value="true" />	
	
	<target name="init">
		<tstamp/>
		<tstamp>
			<format property="YEAR" pattern="yyyy" />
		</tstamp>
		
		<condition property="compile.from.source.true">
			<equals arg1="${compile.source}" arg2="true" />
		</condition>		
	</target>
	
	<target name="buildcore" if="compile.from.source.true">
		<ant antfile="${root.dir}/core/build.xml" target="package" inheritAll="false" inheritRefs="false" />
		<copy file="${root.dir}/core/dist/javarosa-libraries.jar" todir="${base.dir}/tools/" />
	</target>
	
	<target name="buildClean" depends="clean,compile" />

	<target name="clean">
		<delete dir="${build.dir}" />
	</target>

	<target name="jar" depends="javac">
		<jar jarfile="${build.dir}/form_translate.jar">
			<zipfileset dir="${build.dir}/classes" prefix="" />
			<zipfileset src="${base.dir}/tools/javarosa-libraries.jar" />
			<zipfileset src="${lib.dir}/kxml2-2.3.0.jar" />
			<zipfileset src="${base.dir}/lib/xpp3-1.1.4.jar" />
			<zipfileset src="${base.dir}/lib/json-simple-1.1.1.jar" />
			<fileset dir="${build.dir}/classes" />
			<manifest>
				<attribute name="Specification-Version" value="${version}" />
				<attribute name="Implementation-Version" value="${TODAY}" />
				<attribute name="Main-Class" value="org.javarosa.xform.schema.Harness" />
			</manifest>
		</jar>
	</target>
	
	<target name="javac" depends="init">
		<mkdir dir="${build.dir}/classes"/>
		<mkdir dir="${build.dir}/src"/>
		<copy todir="${build.dir}/src">
			<fileset dir="${base.dir}/src/" />
		</copy>

		<javac 
			srcdir="${build.dir}/src"
			destdir="${build.dir}/classes" 
			classpath="${base.dir}/tools/javarosa-libraries.jar;${lib.dir}/kxml2-2.3.0.jar;${base.dir}/lib/xpp3-1.1.4.jar;${base.dir}/lib/json-simple-1.1.1.jar"
			includeAntRuntime="false"
{'fraction_non_alphanumeric': 0.23394495412844038, 'fraction_numerical': 0.011238532110091744, 'mean_word_length': 4.331295843520782, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2328917', 'n_tokens_mistral': 1702, 'n_tokens_neox': 1547, 'n_words': 220}