<commit_before><project name="khttp">
	<property name="build.dir" value="build" />
	<property name="classes.dir" value="${build.dir}/classes/main" />
	<property name="test-classes.dir" value="${build.dir}/classes/test" />
	<property name="jar.dir" value="${build.dir}/jar" />
	<property name="report.dir" value="${build.dir}/reports" />

	<property name="jarfile" value="${jar.dir}/${ant.project.name}.jar" />
	<property name="test-jarfile" value="${jar.dir}/${ant.project.name}-test.jar" />
	<property name="junit-jarfile" value="/usr/share/java/junit4.jar" />

	<property name="main.srcdir" value="${basedir}/src/main" />
	<property name="test.srcdir" value="${basedir}/src/test" />

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

	<target name="compile" depends="compile-main,compile-test">
	</target>

	<target name="compile-main">
		<mkdir dir="${classes.dir}" />
		<javac includeantruntime="false" srcdir="${main.srcdir}" destdir="${classes.dir}" />
	</target>

	<target name="compile-test" depends="compile-main">
		<mkdir dir="${test-classes.dir}" />
		<javac includeantruntime="false" srcdir="${test.srcdir}" destdir="${test-classes.dir}">
			<classpath>
				<pathelement path="${junit-jarfile}" />
				<pathelement path="${classes.dir}" />
			</classpath>
		</javac>
	</target>

	<target name="jar" depends="compile">
		<mkdir dir="${jar.dir}" />
		<jar destfile="${jarfile}" basedir="${classes.dir}">
		</jar>
	</target>

	<target name="test" depends="jar">
		<mkdir dir="${report.dir}" />

		<junit haltonfailure="true" printsummary="true" showoutput="yes">
			<classpath>
				<pathelement location="${jarfile}" />
				<pathelement location="${test-classes.dir}" />
				<pathelement location="${junit-jarfile}" />
			</classpath>
			<batchtest fork="yes" todir="${report.dir}" >
				<fileset dir="${test.srcdir}">
					<include name="**/*Test*.java" />
				</fileset>
			</batchtest>
		</junit>
	</target>
</project>
<commit_msg>Add formatter type for test output.<commit_after><project name="khttp">
	<property name="build.dir" value="build" />
	<property name="classes.dir" value="${build.dir}/classes/main" />
	<property name="test-classes.dir" value="${build.dir}/classes/test" />
	<property name="jar.dir" value="${build.dir}/jar" />
	<property name="report.dir" value="${build.dir}/reports" />

	<property name="jarfile" value="${jar.dir}/${ant.project.name}.jar" />
	<property name="test-jarfile" value="${jar.dir}/${ant.project.name}-test.jar" />
	<property name="junit-jarfile" value="/usr/share/java/junit4.jar" />

	<property name="main.srcdir" value="${basedir}/src/main" />
	<property name="test.srcdir" value="${basedir}/src/test" />

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

	<target name="compile" depends="compile-main,compile-test">
	</target>

	<target name="compile-main">
		<mkdir dir="${classes.dir}" />
		<javac includeantruntime="false" srcdir="${main.srcdir}" destdir="${classes.dir}" />
	</target>

	<target name="compile-test" depends="compile-main">
		<mkdir dir="${test-classes.dir}" />
		<javac includeantruntime="false" srcdir="${test.srcdir}" destdir="${test-classes.dir}">
			<classpath>
				<pathelement path="${junit-jarfile}" />
				<pathelement path="${classes.dir}" />
			</classpath>
		</javac>
	</target>

	<target name="jar" depends="compile">
		<mkdir dir="${jar.dir}" />
		<jar destfile="${jarfile}" basedir="${classes.dir}">
		</jar>
	</target>

	<target name="test" depends="jar">
		<mkdir dir="${report.dir}" />

		<junit haltonfailure="true" printsummary="true" showoutput="yes">
			<classpath>
				<pathelement location="${jarfile}" />
				<pathelement location="${test-classes.dir}" />
				<pathelement location="${junit-jarfile}" />
			</classpath>

			<formatter type="xml" />

			<batchtest fork="yes" todir="${report.dir}" >
				<fileset dir="${test.srcdir}">
					<include name="**/*Test*.java" />
				</fileset>
			</batchtest>
		</junit>
	</target>
</project>

{'fraction_non_alphanumeric': 0.2342727730246603, 'fraction_numerical': 0.0005032712632108706, 'mean_word_length': 4.760869565217392, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 104, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '1000435', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1343, 'n_words': 219}