<commit_before><project name="zap" default="full-release" basedir=".">
	<description>Build ZAP.</description>
	<!-- set global properties for this build -->
	<property name="src" location="../src" />
	<property name="src.version" value="1.8" />
	<property name="build" location="build" />
	<property name="build.lib.dir" location="lib" />
	<property name="dist" location="zap" />
	<property name="dist.lib.dir" location="../lib" />
	<property name="javadocs.dir" location="../javadocs" />
	<property name="lang.dir" value="${src}/lang" />
	<property name="help.dir" value="../../zap-core-help/src/help" />
	<property name="test.lib" location="../testlib" />
	<property name="test.src" location="../test" />
	<property name="test.build" location="buildtest" />
	<property name="zap.extensions.alpha.dir" location="../../zap-extensions_alpha/" />
	<property name="zap.extensions.beta.dir" location="../../zap-extensions_beta/" />
	<property name="zap.extensions.trunk.dir" location="../../zap-extensions/" />
	<property name="zap.test.trunk.dir" location="../../zaproxy-test/" />
	<property name="package" value="zaproxy" />

	<!-- mac specific properties -->
	<property name="dist-mac" location="zap-mac" />
	<property name="mac-skeleton" location="mac_os_x" />
	<property name="app.name" value="OWASP ZAP.app" />
	<property name="app.volname" value="OWASP ZAP" />
	<property name="app.bundle" value="${dist-mac}/${app.name}" />
	<property name="app.executable" value="${app.bundle}/Contents/MacOS/OWASP ZAP.sh" />
	<property name="app.java" value="${app.bundle}/Contents/Java" />
	<!--This version downloaded from http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html -->
	<property name="app.jrearchive" value="jre-8u152-macosx-x64.tar.gz" />
	<property name="app.jredir" value="jre1.8.0_152.jre" />
	<property name="app.plugins" value="${app.bundle}/Contents/PlugIns" />

	<!-- Detect Operating system (Though only the Mac check is used, the other OS checks might be useful for future purposes -->
	<condition property="isMac">
		<os family="mac" />
	</condition>
	<condition property="isUnix">
		<os family="unix" />
	</condition>
	<condition property="isWindows">
		<os family="windows" />
	</condition>

	<path id="build.classpath">
		<fileset dir="${build.lib.dir}" includes="*.jar"/>
	</path>

	<!-- Ant task to generate JavaHelp jars -->
	<taskdef name="generatejavahelpjars" classname="org.zaproxy.ant.javahelp.taskdefs.GenerateJavaHelpJars" classpathref="build.classpath" />

	<!-- task to do conditionals -->
	<taskdef classpathref="build.classpath" resource="net/sf/antcontrib/antlib.xml" />

	<!-- task to build debs -->
	<taskdef classpathref="build.classpath" name="deb" classname="org.vafer.jdeb.ant.DebAntTask"/>

	<path id="dist.classpath">
		<!--pathelement location="."/-->
		<fileset dir="${dist.lib.dir}" includes="**/*.jar" />
	</path>

	<target name="init">
		<!-- Create the time stamp -->
		<tstamp />

		<!-- Create the build directory structure used by compile -->

		<delete dir="${dist}" includeEmptyDirs="true" />
		<delete dir="${build}" includeEmptyDirs="true" />
		<delete dir="${test.build}" includeEmptyDirs="true" />

		<mkdir dir="${build}" />
		<mkdir dir="${test.build}" />
		<mkdir dir="results" />
	</target>

	<target name="clean" depends="setup" description="Cleans up previous distributions">
		<delete verbose="true">
			<fileset dir="." includes="zaproxy*.deb" />
			<fileset dir="." includes="ZAP*.dmg" />
			<fileset dir="." includes="ZAP*.tar.gz" />
			<fileset dir="." includes="ZAP*.zip" />
		</delete>
		<delete dir="${app.name}" />      <!-- if you've unzipped the Mac version, for testing -->
		<delete dir="ZAP_${version}" />   <!-- if you've untarred the Linux version, for testing -->
		<delete dir="${test.build}" includeEmptyDirs="true" />
		<delete dir="results"  includeEmptyDirs="true" />
	</target>

	<target name="compile" depends="init" description="Compile the source ">
		<echo message="Compiling the source..." />

		<!-- Compile the java code from ${src} into ${build} -->
		<!--javac srcdir="${src}" destdir="${build}" classpath="zap.jar"/-->
		<javac srcdir="${src}" destdir="${build}" source="${src.version}" target="${src.version}" includeantruntime="false" debug="true" encoding="UTF-8">
			<compilerarg value="-Xlint:all"/>
			<compilerarg value="-Xlint:-options"/> <!-- Otherwise fails with Java 8 -->
			<compilerarg value="-Werror"/>
			<classpath>
				<fileset dir="${dist.lib.dir}">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</javac>

		<!-- Compile the java test code from ${test.src} into ${test.build} -->
		<javac srcdir="${test.src}" destdir="${test.build}" source="${src.version}" target="${src.version}" includeantruntime="false" debug="true" encoding="UTF-8">
			<compilerarg value="-Xlint:all"/>
			<compilerarg value="-Xlint:-options"/> <!-- Otherwise fails with Java 8 -->
			<compilerarg value="-Werror"/>
			<classpath>
				<pathelement location="${build}" />
				<fileset dir="${dist.lib.dir}">
					<include name="**/*.jar" />
				</fileset>
				<fileset dir="${test.lib}">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</javac>

	</target>

	<target name="dist" depends="setup, compile" description="Generates the distribution"><commit_msg>Include parameter names when compiling<commit_after><project name="zap" default="full-release" basedir=".">
	<description>Build ZAP.</description>
	<!-- set global properties for this build -->
	<property name="src" location="../src" />
	<property name="src.version" value="1.8" />
	<property name="build" location="build" />
	<property name="build.lib.dir" location="lib" />
	<property name="dist" location="zap" />
	<property name="dist.lib.dir" location="../lib" />
	<property name="javadocs.dir" location="../javadocs" />
	<property name="lang.dir" value="${src}/lang" />
	<property name="help.dir" value="../../zap-core-help/src/help" />
	<property name="test.lib" location="../testlib" />
	<property name="test.src" location="../test" />
	<property name="test.build" location="buildtest" />
	<property name="zap.extensions.alpha.dir" location="../../zap-extensions_alpha/" />
	<property name="zap.extensions.beta.dir" location="../../zap-extensions_beta/" />
	<property name="zap.extensions.trunk.dir" location="../../zap-extensions/" />
	<property name="zap.test.trunk.dir" location="../../zaproxy-test/" />
	<property name="package" value="zaproxy" />

	<!-- mac specific properties -->
	<property name="dist-mac" location="zap-mac" />
	<property name="mac-skeleton" location="mac_os_x" />
	<property name="app.name" value="OWASP ZAP.app" />
	<property name="app.volname" value="OWASP ZAP" />
	<property name="app.bundle" value="${dist-mac}/${app.name}" />
	<property name="app.executable" value="${app.bundle}/Contents/MacOS/OWASP ZAP.sh" />
	<property name="app.java" value="${app.bundle}/Contents/Java" />
	<!--This version downloaded from http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html -->
	<property name="app.jrearchive" value="jre-8u152-macosx-x64.tar.gz" />
	<property name="app.jredir" value="jre1.8.0_152.jre" />
	<property name="app.plugins" value="${app.bundle}/Contents/PlugIns" />

	<!-- Detect Operating system (Though only the Mac check is used, the other OS checks might be useful for future purposes -->
	<condition property="isMac">
		<os family="mac" />
	</condition>
	<condition property="isUnix">
		<os family="unix" />
	</condition>
	<condition property="isWindows">
		<os family="windows" />
	</condition>

	<path id="build.classpath">
		<fileset dir="${build.lib.dir}" includes="*.jar"/>
	</path>

	<!-- Ant task to generate JavaHelp jars -->
	<taskdef name="generatejavahelpjars" classname="org.zaproxy.ant.javahelp.taskdefs.GenerateJavaHelpJars" classpathref="build.classpath" />

	<!-- task to do conditionals -->
	<taskdef classpathref="build.classpath" resource="net/sf/antcontrib/antlib.xml" />

	<!-- task to build debs -->
	<taskdef classpathref="build.classpath" name="deb" classname="org.vafer.jdeb.ant.DebAntTask"/>

	<path id="dist.classpath">
		<!--pathelement location="."/-->
		<fileset dir="${dist.lib.dir}" includes="**/*.jar" />
	</path>

	<target name="init">
		<!-- Create the time stamp -->
		<tstamp />

		<!-- Create the build directory structure used by compile -->

		<delete dir="${dist}" includeEmptyDirs="true" />
		<delete dir="${build}" includeEmptyDirs="true" />
		<delete dir="${test.build}" includeEmptyDirs="true" />

		<mkdir dir="${build}" />
		<mkdir dir="${test.build}" />
		<mkdir dir="results" />
	</target>

	<target name="clean" depends="setup" description="Cleans up previous distributions">
		<delete verbose="true">
			<fileset dir="." includes="zaproxy*.deb" />
			<fileset dir="." includes="ZAP*.dmg" />
			<fileset dir="." includes="ZAP*.tar.gz" />
			<fileset dir="." includes="ZAP*.zip" />
		</delete>
		<delete dir="${app.name}" />      <!-- if you've unzipped the Mac version, for testing -->
		<delete dir="ZAP_${version}" />   <!-- if you've untarred the Linux version, for testing -->
		<delete dir="${test.build}" includeEmptyDirs="true" />
		<delete dir="results"  includeEmptyDirs="true" />
	</target>

	<target name="compile" depends="init" description="Compile the source ">
		<echo message="Compiling the source..." />

		<!-- Compile the java code from ${src} into ${build} -->
		<!--javac srcdir="${src}" destdir="${build}" classpath="zap.jar"/-->
		<javac srcdir="${src}" destdir="${build}" source="${src.version}" target="${src.version}" includeantruntime="false" debug="true" encoding="UTF-8">
			<compilerarg value="-Xlint:all"/>
			<compilerarg value="-Xlint:-options"/> <!-- Otherwise fails with Java 8 -->
			<compilerarg value="-Werror"/>
			<compilerarg value="-parameters"/>
			<classpath>
				<fileset dir="${dist.lib.dir}">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</javac>

		<!-- Compile the java test code from ${test.src} into ${test.build} -->
		<javac srcdir="${test.src}" destdir="${test.build}" source="${src.version}" target="${src.version}" includeantruntime="false" debug="true" encoding="UTF-8">
			<compilerarg value="-Xlint:all"/>
			<compilerarg value="-Xlint:-options"/> <!-- Otherwise fails with Java 8 -->
			<compilerarg value="-Werror"/>
			<classpath>
				<pathelement location="${build}" />
				<fileset dir="${dist.lib.dir}">
					<include name="**/*.jar" />
				</fileset>
				<fileset dir="${test.lib}">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</javac>

	</target>

	<target name="dist" depends="setup, compile" description="Generates the distribution">
{'fraction_non_alphanumeric': 0.21759475900795508, 'fraction_numerical': 0.004866635470285447, 'mean_word_length': 4.238235294117647, 'pattern_counts': {'":': 0, '<': 232, '<?xml version=': 0, '>': 232, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6668804', 'n_tokens_mistral': 3726, 'n_tokens_neox': 3430, 'n_words': 721}