<commit_before><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build-all" name="RepoExpress">

	<property environment="env"/>
	<property file="build.properties"/>
	<property name="dir.src.java" value="${basedir}/src/java"/>
	<property name="dir.src.test" value="${basedir}/test/java"/>
	<property name="dir.build" value="${basedir}/build"/>
	<property name="dir.compile" value="${dir.build}/classes/main"/>
	<property name="dir.compile.test" value="${dir.build}/classes/test"/>
	<property name="dir.lib" value="${basedir}/lib"/>
	<property name="dir.dist" value="${basedir}/dist"/>
	<property name="dir.test.results" value="${dir.build}/junit"/>
	<property name="dir.test.report" value="${dir.test.results}/report"/>

	<path id="compile.classpath">
		<pathelement location="${dir.compile}"/>
		<fileset dir="${dir.lib}">
			<include name="**/*.jar"/>
		</fileset>
    </path>

	<path id="runtime.classpath">
		<pathelement location="${dir.compile}"/>
		<fileset dir="${dir.lib}">
			<include name="**/*.jar"/>
			<exclude name="**/sources/*"/>
		</fileset>
    </path>

	<path id="unit_test.classpath">
		<path refid="runtime.classpath"/>
		<pathelement location="${dir.compile.test}"/>
    </path>

    <target name="_init">
		<mkdir dir="${dir.compile}"/>
		<mkdir dir="${dir.compile.test}"/>
		<mkdir dir="${dir.dist}"/>
    </target>

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

	<!-- ====================================================================== 
          target: compile
         ====================================================================== -->
    <target name="compile"  depends="_init">
		<javac destdir="${dir.compile}"
			failonerror="yes"
			fork="yes"
    		source="${javac.source}"
    		debug="${javac.debug}">
			<classpath>
				<path refid="compile.classpath"/>
			</classpath>
			<src>
				<pathelement location="${dir.src.java}"/>
			</src>
		</javac>
    	
		<javac destdir="${dir.compile.test}"
			failonerror="yes"
			fork="yes"
    		source="${javac.source}"
    		debug="${javac.debug}">
			<classpath>
				<path refid="compile.classpath"/>
			</classpath>
			<src>
				<pathelement location="${dir.src.test}"/>
			</src>
		</javac>
    </target>
	
	<!-- ====================================================================== 
          target: build
         ====================================================================== -->
	<target name="build" depends="compile, unit-test"/>

	<!-- ====================================================================== 
          target: build-all
         ====================================================================== -->
	<target name="build-all" depends="clean, compile, unit-test"/>

	<!-- ====================================================================== 
          target: unit-test
         ====================================================================== -->
    <target name="unit-test" depends="_init, compile" description="--> Execute RestExpress unit tests">
        <delete dir="${dir.test.results}"/>
    	<mkdir dir="${dir.test.results}"/>
    	<junit printsummary="true">
    		<classpath refid="unit_test.classpath"/>
    		<formatter type="xml" usefile="true"/>
    		<batchtest errorproperty="test.failure" failureproperty="test.failure" fork="yes" todir="${dir.test.results}">
    			<fileset dir="${dir.src.test}">
    				<include name="**/*Test.java"/>
    				<include name="**/*TestCase.java"/>
    			</fileset>
    		</batchtest>
    	</junit>
    	
    	<mkdir dir="${dir.test.report}"/>
    	<junitreport todir="${dir.test.report}">
    		<report format="frames" todir="${dir.test.report}"/>
    		<fileset dir="${dir.test.results}"/>
    	</junitreport>
    	
    	<fail if="test.failure" message="Unit-Tests failed."/>
    </target>

	<!-- ====================================================================== 
          target: release
         ====================================================================== -->
    <target name="release" depends="_init, compile" description="Release a distro">
		<jar destfile="${dir.dist}/${ant.project.name}-${version}.jar">
    		<fileset dir="${dir.compile}"/>
    	</jar>
		<jar destfile="${dir.dist}/${ant.project.name}-${version}-src.jar">
    		<fileset dir="${dir.src.java}"/>
    	</jar>
    </target>

</project>
<commit_msg>Updated release target to create zip file containing all dependencies.<commit_after><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build-all" name="RepoExpress">

	<property environment="env"/>
	<property file="build.properties"/>
	<property name="dir.src.java" value="${basedir}/src/java"/>
	<property name="dir.src.test" value="${basedir}/test/java"/>
	<property name="dir.build" value="${basedir}/build"/>
	<property name="dir.compile" value="${dir.build}/classes/main"/>
	<property name="dir.compile.test" value="${dir.build}/classes/test"/>
	<property name="dir.lib" value="${basedir}/lib"/>
	<property name="dir.dist" value="${basedir}/dist"/>
	<property name="dir.test.results" value="${dir.build}/junit"/>
	<property name="dir.test.report" value="${dir.test.results}/report"/>

	<path id="compile.classpath">
		<pathelement location="${dir.compile}"/>
		<fileset dir="${dir.lib}">
			<include name="**/*.jar"/>
		</fileset>
    </path>

	<path id="runtime.classpath">
		<pathelement location="${dir.compile}"/>
		<fileset dir="${dir.lib}">
			<include name="**/*.jar"/>
			<exclude name="**/sources/*"/>
		</fileset>
    </path>

	<path id="unit_test.classpath">
		<path refid="runtime.classpath"/>
		<pathelement location="${dir.compile.test}"/>
    </path>

    <target name="_init">
		<mkdir dir="${dir.compile}"/>
		<mkdir dir="${dir.compile.test}"/>
		<mkdir dir="${dir.dist}"/>
    </target>

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

	<!-- ====================================================================== 
          target: compile
         ====================================================================== -->
    <target name="compile"  depends="_init">
		<javac destdir="${dir.compile}"
			failonerror="yes"
			fork="yes"
    		source="${javac.source}"
    		debug="${javac.debug}">
			<classpath>
				<path refid="compile.classpath"/>
			</classpath>
			<src>
				<pathelement location="${dir.src.java}"/>
			</src>
		</javac>
    	
		<javac destdir="${dir.compile.test}"
			failonerror="yes"
			fork="yes"
    		source="${javac.source}"
    		debug="${javac.debug}">
			<classpath>
				<path refid="compile.classpath"/>
			</classpath>
			<src>
				<pathelement location="${dir.src.test}"/>
			</src>
		</javac>
    </target>
	
	<!-- ====================================================================== 
          target: build
         ====================================================================== -->
	<target name="build" depends="compile, unit-test"/>

	<!-- ====================================================================== 
          target: build-all
         ====================================================================== -->
	<target name="build-all" depends="clean, compile, unit-test"/>

	<!-- ====================================================================== 
          target: unit-test
         ====================================================================== -->
    <target name="unit-test" depends="_init, compile" description="--> Execute RestExpress unit tests">
        <delete dir="${dir.test.results}"/>
    	<mkdir dir="${dir.test.results}"/>
    	<junit printsummary="true">
    		<classpath refid="unit_test.classpath"/>
    		<formatter type="xml" usefile="true"/>
    		<batchtest errorproperty="test.failure" failureproperty="test.failure" fork="yes" todir="${dir.test.results}">
    			<fileset dir="${dir.src.test}">
    				<include name="**/*Test.java"/>
    				<include name="**/*TestCase.java"/>
    			</fileset>
    		</batchtest>
    	</junit>
    	
    	<mkdir dir="${dir.test.report}"/>
    	<junitreport todir="${dir.test.report}">
    		<report format="frames" todir="${dir.test.report}"/>
    		<fileset dir="${dir.test.results}"/>
    	</junitreport>
    	
    	<fail if="test.failure" message="Unit-Tests failed."/>
    </target>

	<!-- ====================================================================== 
          target: release
         ====================================================================== -->
    <target name="release" depends="_init, compile" description="Release a distro">
		<jar destfile="${dir.dist}/${ant.project.name}-${version}.jar">
    		<fileset dir="${dir.compile}"/>
    	</jar>
		<jar destfile="${dir.dist}/${ant.project.name}-${version}-src.jar">
    		<fileset dir="${dir.src.java}"/>
    	</jar>
		<zip destfile="${dir.dist}/${ant.project.name}-${version}-deps.zip">
    		<zipfileset dir="${dir.lib}" excludes="junit/"/>
    		<zipfileset dir="${dir.dist}" includes="*.jar" excludes="*-src.jar"/>
    	</zip>
    </target>

</project>

{'fraction_non_alphanumeric': 0.3454565432370069, 'fraction_numerical': 0.0006592682122843643, 'mean_word_length': 3.9737704918032786, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 2, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2784570', 'n_tokens_mistral': 2898, 'n_tokens_neox': 2614, 'n_words': 429}