<commit_before><project name="Shared" xmlns:ivy="antlib:org.apache.ivy.ant" basedir=".">
 <!-- Shared build script to be imported by all Barcode Validator modules -->

    <!-- Shared folders -->
    <dirname property="Shared.basedir" file="${ant.file.Shared}"/>
    <property name="repository" value="${Shared.basedir}/repository"/>
    <property name="validation" value="${Shared.basedir}/validation"/>
    <property name="researchTool" value="${Shared.basedir}/researchTool"/>
    <property name="geneious-runtime-dependencies" location="${Shared.basedir}/GeneiousFiles"/>

    <!-- Per project folders -->
    <property name="src" location="src"/>
    <property name="classes" location="classes"/>
    <property name="resources" location="resources"/>
    <property name="build" location="build"/>
    <property name="lib" location="lib"/>
    <property name="test" location="test"/>
    <property name="test-classes" location="test-classes"/>
    <property name="report" location="report"/>

    <!-- setup reference to the Ivy Ant tasks library -->
    <path id="ivy.lib.path">
        <fileset dir="${Shared.basedir}/tools" includes="ivy*.jar"/>
    </path>

    <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>

    <!-- load ivy settings -->
    <ivy:settings file="${Shared.basedir}/ivysettings.xml" id="ivy.config"/>


    <path id="classpath">
        <fileset dir="${lib}"/>
    </path>



    <target name="build-module" depends="compile-module">
        <jar jarfile="${build}/${ant.project.name}.jar">
            <fileset dir="${classes}"/>
        </jar>
        <zip destfile="${build}/resources.zip">
            <fileset dir="${resources}"/>
        </zip>
    </target>



    <target name="run-tests" depends="compile-tests, retrieve-geneious-runtime-dependencies">
        <junit dir="${geneious-runtime-dependencies}" fork="true" maxmemory="1024M" printsummary="on" timeout="180000">
            <batchtest todir="${report}">
                <fileset dir="${test-classes}">
                    <include name="**/*Test.class"/>
                </fileset>
            </batchtest>
            <classpath>
                <path refid="classpath"/>
                <file file="${geneious-runtime-dependencies}/iSeek.jar"/>
                <fileset dir="${geneious-runtime-dependencies}/lib"/>
                <pathelement location="${test-classes}"/>
                <pathelement location="${classes}"/>
                <pathelement location="${geneious-runtime-dependencies}/resources"/>
                <pathelement location="${geneious-runtime-dependencies}/bundledPlugins"/>
            </classpath><commit_msg>BV-121 - Look into using Gradle for future project - Fix test by cleaning repository with every build and also publish the integration version instead of 1.1<commit_after><project name="Shared" xmlns:ivy="antlib:org.apache.ivy.ant" basedir=".">
 <!-- Shared build script to be imported by all Barcode Validator modules -->

    <!-- Shared folders -->
    <dirname property="Shared.basedir" file="${ant.file.Shared}"/>
    <property name="repository" value="${Shared.basedir}/repository"/>
    <property name="validation" value="${Shared.basedir}/validation"/>
    <property name="researchTool" value="${Shared.basedir}/researchTool"/>
    <property name="geneious-runtime-dependencies" location="${Shared.basedir}/GeneiousFiles"/>

    <!-- Per project folders -->
    <property name="src" location="src"/>
    <property name="classes" location="classes"/>
    <property name="resources" location="resources"/>
    <property name="build" location="build"/>
    <property name="lib" location="lib"/>
    <property name="test" location="test"/>
    <property name="test-classes" location="test-classes"/>
    <property name="report" location="report"/>

    <!-- setup reference to the Ivy Ant tasks library -->
    <path id="ivy.lib.path">
        <fileset dir="${Shared.basedir}/tools" includes="ivy*.jar"/>
    </path>

    <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>

    <!-- load ivy settings -->
    <ivy:settings file="${Shared.basedir}/ivysettings.xml" id="ivy.config"/>


    <path id="classpath">
        <fileset dir="${lib}"/>
    </path>



    <target name="build-module" depends="compile-module">
        <jar jarfile="${build}/${ant.project.name}.jar">
            <fileset dir="${classes}"/>
        </jar>
        <zip destfile="${build}/resources.zip">
            <fileset dir="${resources}"/>
        </zip>
    </target>



    <target name="run-tests" depends="clean, compile-tests, retrieve-geneious-runtime-dependencies">
        <junit dir="${geneious-runtime-dependencies}" fork="true" maxmemory="1024M" printsummary="on" timeout="180000">
            <batchtest todir="${report}">
                <fileset dir="${test-classes}">
                    <include name="**/*Test.class"/>
                </fileset>
            </batchtest>
            <classpath>
                <path refid="classpath"/>
                <file file="${geneious-runtime-dependencies}/iSeek.jar"/>
                <fileset dir="${geneious-runtime-dependencies}/lib"/>
                <pathelement location="${test-classes}"/>
                <pathelement location="${classes}"/>
                <pathelement location="${geneious-runtime-dependencies}/resources"/>
                <pathelement location="${geneious-runtime-dependencies}/bundledPlugins"/>
            </classpath>
{'fraction_non_alphanumeric': 0.17967201297531088, 'fraction_numerical': 0.004505316273202379, 'mean_word_length': 2.9870689655172415, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4753718', 'n_tokens_mistral': 1587, 'n_tokens_neox': 1478, 'n_words': 296}