<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.7" />
    <property name="build" location="build" />
    <property name="dist" location="zap" />
    <property name="dist.lib.dir" location="../lib" />
    <property name="dist.lib.license.dir" location="../license" />
    <property name="dist.lib.exploded.dir" location="api-libs-exploded" />
    <property name="javadocs.dir" location="../javadocs" />
    <property name="crowdin.dir" location="${build}/crowdin" />
    <property name="lang.dir" value="${src}/lang" />
    <property name="zap.extensions.src.dir" location="../../zap-extensions/src/" />

    <!-- 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.bundle" value="${dist-mac}/${app.name}" />
    <property name="app.executable" value="${app.bundle}/Contents/MacOS/JavaAppLauncher" />
    <property name="app.java" value="${app.bundle}/Contents/Java" />
    <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>

    <!-- svn command line -->
    <property name="svn.cmd" value="svn" />

    <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="${dist.lib.exploded.dir}" includeEmptyDirs="true" />

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

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

        <!-- Compile with debug information if the property "javac.debug" is set to true -->
        <local name="debug" />
        <condition property="debug" value="true" else="false">
            <istrue value="${javac.debug}" />
        </condition>

        <!-- 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="${debug}">
            <classpath>
                <fileset dir="${dist.lib.dir}">
                    <include name="**/*.jar" />
                </fileset>
            </classpath>
        </javac>

    </target>

    <target name="dist" depends="compile" description="generate the distribution">
        <echo message="Creating the distribution set..." />

        <!-- Create the distribution directory -->
        <mkdir dir="${dist}" />
        <!--copy file="lib.jar" tofile="${dist}/lib.jar"/-->

        <copy file="${src}/xml/log4j.properties" tofile="${build}/xml/log4j.properties" />

        <copy todir="${build}/resource">
            <fileset dir="${src}/resource" excludes="**/.svn/** **/_svn/**" />
        </copy>

        <copy todir="${dist}/xml">
            <fileset dir="${src}/xml" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/db">
            <fileset dir="${src}/db" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/dirbuster">
            <fileset dir="${src}/dirbuster" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/filter">
            <fileset dir="${src}/filter" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/fuzzers">
            <fileset dir="${src}/fuzzers" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/plugin">
            <fileset dir="${src}/plugin" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/session">
            <fileset dir="${src}/session" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/lang">
            <fileset dir="${src}/lang" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <!-- Special case - duplicate the default lang file (issue 151)-->
        <copy file="${src}/lang/Messages.properties" tofile="${dist}/lang/Messages_en_GB.properties"/>

        <copy todir="${dist}/license">
            <fileset dir="${src}/license" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/log">
            <fileset dir="${src}/log" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/lib">
            <fileset dir="${dist.lib.dir}">
                <include name="**/*.jar" />
                <exclude name="**/.svn/**" />
                <exclude name="**/_svn/**" />
            </fileset>
        </copy>
    	<echo message="TODO here goes"/>
        <copy todir="${build}/org">
            <fileset dir="${src}/org" includes="**/*.properties" />
        </copy>
        <!-- Copy standard README - this is overwritted for weekly releases -->
        <copy file="${src}/doc/README" tofile="${dist}/README" />

        <!-- Copy any scripts, and give execute perms -->
        <copy todir="${dist}">
            <fileset dir="${src}" includes="*.sh" excludes="**/.svn/** **/_svn/**" />
            <fileset dir="${src}" includes="*.bat" excludes="**/.svn/** **/_svn/**" />
        </copy>

        <chmod perm="ug+x">
            <!-- This only has any effect on Linux --><commit_msg>And corrected the comment ;)<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.7" />
    <property name="build" location="build" />
    <property name="dist" location="zap" />
    <property name="dist.lib.dir" location="../lib" />
    <property name="dist.lib.license.dir" location="../license" />
    <property name="dist.lib.exploded.dir" location="api-libs-exploded" />
    <property name="javadocs.dir" location="../javadocs" />
    <property name="crowdin.dir" location="${build}/crowdin" />
    <property name="lang.dir" value="${src}/lang" />
    <property name="zap.extensions.src.dir" location="../../zap-extensions/src/" />

    <!-- 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.bundle" value="${dist-mac}/${app.name}" />
    <property name="app.executable" value="${app.bundle}/Contents/MacOS/JavaAppLauncher" />
    <property name="app.java" value="${app.bundle}/Contents/Java" />
    <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>

    <!-- svn command line -->
    <property name="svn.cmd" value="svn" />

    <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="${dist.lib.exploded.dir}" includeEmptyDirs="true" />

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

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

        <!-- Compile with debug information if the property "javac.debug" is set to true -->
        <local name="debug" />
        <condition property="debug" value="true" else="false">
            <istrue value="${javac.debug}" />
        </condition>

        <!-- 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="${debug}">
            <classpath>
                <fileset dir="${dist.lib.dir}">
                    <include name="**/*.jar" />
                </fileset>
            </classpath>
        </javac>

    </target>

    <target name="dist" depends="compile" description="generate the distribution">
        <echo message="Creating the distribution set..." />

        <!-- Create the distribution directory -->
        <mkdir dir="${dist}" />
        <!--copy file="lib.jar" tofile="${dist}/lib.jar"/-->

        <copy file="${src}/xml/log4j.properties" tofile="${build}/xml/log4j.properties" />

        <copy todir="${build}/resource">
            <fileset dir="${src}/resource" excludes="**/.svn/** **/_svn/**" />
        </copy>

        <copy todir="${dist}/xml">
            <fileset dir="${src}/xml" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/db">
            <fileset dir="${src}/db" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/dirbuster">
            <fileset dir="${src}/dirbuster" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/filter">
            <fileset dir="${src}/filter" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/fuzzers">
            <fileset dir="${src}/fuzzers" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/plugin">
            <fileset dir="${src}/plugin" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/session">
            <fileset dir="${src}/session" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/lang">
            <fileset dir="${src}/lang" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <!-- Special case - duplicate the default lang file (issue 151)-->
        <copy file="${src}/lang/Messages.properties" tofile="${dist}/lang/Messages_en_GB.properties"/>

        <copy todir="${dist}/license">
            <fileset dir="${src}/license" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/log">
            <fileset dir="${src}/log" excludes="**/.svn/** **/_svn/**" />
        </copy>
        <copy todir="${dist}/lib">
            <fileset dir="${dist.lib.dir}">
                <include name="**/*.jar" />
                <exclude name="**/.svn/**" />
                <exclude name="**/_svn/**" />
            </fileset>
        </copy>
        <!-- Include properties files from the source code to support extension specific language files -->
        <copy todir="${build}/org">
            <fileset dir="${src}/org" includes="**/*.properties" />
        </copy>
        <!-- Copy standard README - this is overwritted for weekly releases -->
        <copy file="${src}/doc/README" tofile="${dist}/README" />

        <!-- Copy any scripts, and give execute perms -->
        <copy todir="${dist}">
            <fileset dir="${src}" includes="*.sh" excludes="**/.svn/** **/_svn/**" />
            <fileset dir="${src}" includes="*.bat" excludes="**/.svn/** **/_svn/**" />
        </copy>

        <chmod perm="ug+x">
            <!-- This only has any effect on Linux -->
{'fraction_non_alphanumeric': 0.2237324000976642, 'fraction_numerical': 0.0011394156425490356, 'mean_word_length': 2.3647316538882803, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, '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': '6668805', 'n_tokens_mistral': 3684, 'n_tokens_neox': 3557, 'n_words': 773}