<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="Autopsy 4" default="build" basedir=".">
    <description>Builds the module suite Autopsy 4.</description>
	
    <import file="nbproject/build-impl.xml"/>
    
    <!-- IMPORTANT: nbproject/platform.properties has a netbeans-plat-version property that MUST be kept in sync (manually) -->
    <property name="netbeans-plat-version" value="8.2" />
    <property name="nbplatform.active.dir" value="${basedir}/netbeans-plat/${netbeans-plat-version}" />
    <!-- Supported java versions.-->
    <condition property="supported-java-versions">
        <or>
            <matches string="${java.version}" pattern="1\.8\.0_6[6-9]"/>
            <matches string="${java.version}" pattern="1\.8\.0_[7-9][0-9]"/>
            <matches string="${java.version}" pattern="1\.8\.0_[1-9][0-9][0-9]"/>
            <matches string="${java.version}" pattern="1\.8\.[1-9]_[0-9][0-9]"/>
            <equals arg1="${ant.java.version}" arg2="1.9"/>
        </or>
    </condition>
    
    <!-- Verify that the java version running is . -->
    <fail message="Unsupported Java version: ${ant.java.version}. 
            Make sure that the Java version is 1.8.0_66 or higher."
    unless="supported-java-versions"/>

    <!-- Determine platform and include specific file -->
    <condition property="os.family" value="unix">  
        <os family="unix"/>  
    </condition>  
    <condition property="os.family" value="windows">  
        <os family="windows"/>  
    </condition>  
    <import file="build-${os.family}.xml"/> 
    
    <!-- Third party tools dependencies -->
    <!-- import ant-contrib tools -->
    <property name="thirdparty.dir" value="${basedir}/thirdparty" />
    <property name="ant-contrib.dir" value="${thirdparty.dir}/ant-contrib/1.0b3" />
    <property name="ant.contrib.jar" value="${ant-contrib.dir}/ant-contrib.jar" />
    <taskdef resource="net/sf/antcontrib/antlib.xml">
        <classpath>
            <pathelement location="${ant.contrib.jar}"/>
        </classpath>
    </taskdef>
    
    <target name="getJunit">
        <property name="junit.dir" value="${thirdparty.dir}/junit/${netbeans-plat-version}" />
        <unzip src="${junit.dir}/junit.zip" dest="${nbplatform.active.dir}"/>
    </target>


    <!-- Verify that the TSK_HOME env variable is set -->
    <target name="findTSK">
        <property environment="env"/>
        <condition property="tskFound">
            <isset property="env.TSK_HOME"/>
        </condition>
        <fail unless="tskFound" message="TSK_HOME must be set as an environment variable."/>
        <echo> TSK_HOME: ${env.TSK_HOME}</echo>
    </target>

    <!-- This target will create a custom ZIP file for us.  It first uses the general
      ZIP target and then opens it up and adds in any files that we want.  This is where we customize the
      version number. -->
    <target name="build-zip" depends="doxygen, suite.build-zip"> <!--,findJRE" -->
        
        <property name="release.dir" value="${nbdist.dir}/${app.name}"/>

        <!-- step (2) unzip the result  -->
        <property name="zip-tmp" value="${nbdist.dir}/tmp"/>
        <delete dir="${zip-tmp}"/>
        <mkdir dir="${zip-tmp}"/>
        <unzip src="${nbdist.dir}/${app.name}.zip" dest="${zip-tmp}"/>

        <!-- step (3) do your copying stuff here, check the ant doc for copy, move, etc file -->
        <copy file="${basedir}/README.txt" tofile="${zip-tmp}/${app.name}/README.txt"/>
        <copy file="${basedir}/LICENSE-2.0.txt" tofile="${zip-tmp}/${app.name}/LICENSE-2.0.txt"/>
        <copy file="${basedir}/NEWS.txt" tofile="${zip-tmp}/${app.name}/NEWS.txt"/>
        <copy file="${basedir}/KNOWN_ISSUES.txt" tofile="${zip-tmp}/${app.name}/KNOWN_ISSUES.txt"/>
        <unzip src="${thirdparty.dir}/gstreamer/${os.family}/i386/0.10.7/gstreamer.zip" dest="${zip-tmp}/${app.name}/gstreamer"/>
        <copy file="${basedir}/icons/icon.ico" tofile="${zip-tmp}/${app.name}/icon.ico" overwrite="true"/>
        
        <!-- Copy the Autopsy documentation to the docs folder -->
        <copy flatten="true" todir="${zip-tmp}/${app.name}/docs">
            <fileset dir="${basedir}/docs/doxygen-user/user-docs"/>
        </copy>

        <property name="app.property.file" value="${zip-tmp}/${app.name}/etc/${app.name}.conf" />
        <!-- for Japanese localized version add option:  -Duser.language=ja -->        
        <property name="jvm.options" value="&quot;--branding ${app.name} -J-Xms24m -J-XX:MaxPermSize=128M -J-Xverify:none -J-Xdock:name=${app.title}&quot;" />
        <propertyfile file="${app.property.file}"><commit_msg>Added a line to copy the necessary JUnit JAR file.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="Autopsy 4" default="build" basedir=".">
    <description>Builds the module suite Autopsy 4.</description>
	
    <import file="nbproject/build-impl.xml"/>
    
    <!-- IMPORTANT: nbproject/platform.properties has a netbeans-plat-version property that MUST be kept in sync (manually) -->
    <property name="netbeans-plat-version" value="8.2" />
    <property name="nbplatform.active.dir" value="${basedir}/netbeans-plat/${netbeans-plat-version}" />
    <!-- Supported java versions.-->
    <condition property="supported-java-versions">
        <or>
            <matches string="${java.version}" pattern="1\.8\.0_6[6-9]"/>
            <matches string="${java.version}" pattern="1\.8\.0_[7-9][0-9]"/>
            <matches string="${java.version}" pattern="1\.8\.0_[1-9][0-9][0-9]"/>
            <matches string="${java.version}" pattern="1\.8\.[1-9]_[0-9][0-9]"/>
            <equals arg1="${ant.java.version}" arg2="1.9"/>
        </or>
    </condition>
    
    <!-- Verify that the java version running is . -->
    <fail message="Unsupported Java version: ${ant.java.version}. 
            Make sure that the Java version is 1.8.0_66 or higher."
    unless="supported-java-versions"/>

    <!-- Determine platform and include specific file -->
    <condition property="os.family" value="unix">  
        <os family="unix"/>  
    </condition>  
    <condition property="os.family" value="windows">  
        <os family="windows"/>  
    </condition>  
    <import file="build-${os.family}.xml"/> 
    
    <!-- Third party tools dependencies -->
    <!-- import ant-contrib tools -->
    <property name="thirdparty.dir" value="${basedir}/thirdparty" />
    <property name="ant-contrib.dir" value="${thirdparty.dir}/ant-contrib/1.0b3" />
    <property name="ant.contrib.jar" value="${ant-contrib.dir}/ant-contrib.jar" />
    <taskdef resource="net/sf/antcontrib/antlib.xml">
        <classpath>
            <pathelement location="${ant.contrib.jar}"/>
        </classpath>
    </taskdef>
    
    <target name="getJunit">
        <property name="junit.dir" value="${thirdparty.dir}/junit/${netbeans-plat-version}" />
        <unzip src="${junit.dir}/junit.zip" dest="${nbplatform.active.dir}"/>
    </target>


    <!-- Verify that the TSK_HOME env variable is set -->
    <target name="findTSK">
        <property environment="env"/>
        <condition property="tskFound">
            <isset property="env.TSK_HOME"/>
        </condition>
        <fail unless="tskFound" message="TSK_HOME must be set as an environment variable."/>
        <echo> TSK_HOME: ${env.TSK_HOME}</echo>
    </target>

    <!-- This target will create a custom ZIP file for us.  It first uses the general
      ZIP target and then opens it up and adds in any files that we want.  This is where we customize the
      version number. -->
    <target name="build-zip" depends="doxygen, suite.build-zip"> <!--,findJRE" -->
        
        <property name="release.dir" value="${nbdist.dir}/${app.name}"/>

        <!-- step (2) unzip the result  -->
        <property name="zip-tmp" value="${nbdist.dir}/tmp"/>
        <delete dir="${zip-tmp}"/>
        <mkdir dir="${zip-tmp}"/>
        <unzip src="${nbdist.dir}/${app.name}.zip" dest="${zip-tmp}"/>

        <!-- step (3) do your copying stuff here, check the ant doc for copy, move, etc file -->
        <copy file="${nbplatform.active.dir}/platform/modules/ext/junit-4.10.jar"
              tofile="${zip-tmp}/${app.name}/platform/modules/ext/junit-4.10.jar"/>
        <copy file="${basedir}/README.txt" tofile="${zip-tmp}/${app.name}/README.txt"/>
        <copy file="${basedir}/LICENSE-2.0.txt" tofile="${zip-tmp}/${app.name}/LICENSE-2.0.txt"/>
        <copy file="${basedir}/NEWS.txt" tofile="${zip-tmp}/${app.name}/NEWS.txt"/>
        <copy file="${basedir}/KNOWN_ISSUES.txt" tofile="${zip-tmp}/${app.name}/KNOWN_ISSUES.txt"/>
        <unzip src="${thirdparty.dir}/gstreamer/${os.family}/i386/0.10.7/gstreamer.zip" dest="${zip-tmp}/${app.name}/gstreamer"/>
        <copy file="${basedir}/icons/icon.ico" tofile="${zip-tmp}/${app.name}/icon.ico" overwrite="true"/>
        
        <!-- Copy the Autopsy documentation to the docs folder -->
        <copy flatten="true" todir="${zip-tmp}/${app.name}/docs">
            <fileset dir="${basedir}/docs/doxygen-user/user-docs"/>
        </copy>

        <property name="app.property.file" value="${zip-tmp}/${app.name}/etc/${app.name}.conf" />
        <!-- for Japanese localized version add option:  -Duser.language=ja -->        
        <property name="jvm.options" value="&quot;--branding ${app.name} -J-Xms24m -J-XX:MaxPermSize=128M -J-Xverify:none -J-Xdock:name=${app.title}&quot;" />
        <propertyfile file="${app.property.file}">
{'fraction_non_alphanumeric': 0.19664557597669982, 'fraction_numerical': 0.014060459977904992, 'mean_word_length': 2.797864225781846, 'pattern_counts': {'":': 0, '<': 162, '<?xml version=': 2, '>': 162, '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': '7601595', 'n_tokens_mistral': 3154, 'n_tokens_neox': 3067, 'n_words': 673}