<commit_before><?xml version="1.0" encoding="UTF-8" ?>

<project name="Carrot2 3.0 Bamboo builds" default="help">
    <property file="${bamboo.build.properties}" />

    <target name="clean" description="Clean build results">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- clean everything -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="clean" inheritall="true" />
    </target>

    <target name="build" description="Perform a full build of the core">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- full build, test and reports -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="reports" inheritall="true" />
    </target>

    <target name="dist" description="Build Carrot2 distribution">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- build all distributions and docs -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="dist" inheritall="true" />
    </target>

    <target name="publish" depends="publish.artifacts, publish.demo" />

    <target name="publish.demo">
        <fail unless="webapp.name">Define: webapp.name property.</fail>
        <fail unless="webapps.dir">Define: webapps.dir property.</fail>
        <fail unless="tomcat.init">Define: tomcat.init property.</fail>

        <!-- We're assuming the webapp has already been built -->
        <copy file="${carrot2.code.dir}/tmp/carrot2-webapp.war"
              tofile="${webapps.dir}/${webapp.name}.war"
              overwrite="true" />
    </target>

    <target name="publish.artifacts">
        <fail unless="dist.dir">Define: dist.dir property.</fail>
<commit_msg>build: a correction to bamboo build script<commit_after><?xml version="1.0" encoding="UTF-8" ?>

<project name="Carrot2 3.0 Bamboo builds" default="help">
    <property file="${bamboo.build.properties}" />

    <target name="clean" description="Clean build results">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- clean everything -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="clean" inheritall="true" />
    </target>

    <target name="build" description="Perform a full build of the core">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- full build, test and reports -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="reports" inheritall="true" />
    </target>

    <target name="dist" description="Build Carrot2 distribution">
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>

        <!-- build all distributions and docs -->
        <ant dir="${carrot2.code.dir}" antfile="build.xml" target="dist" inheritall="true" />
    </target>

    <target name="publish" depends="publish.artifacts, publish.demo" />

    <target name="publish.demo">
        <fail unless="webapp.name">Define: webapp.name property.</fail>
        <fail unless="webapps.dir">Define: webapps.dir property.</fail>
        <fail unless="tomcat.init">Define: tomcat.init property.</fail>
        <fail unless="carrot2.code.dir">Define: carrot2.code.dir</fail>
        <property file="${carrot2.code.dir}/carrot2.version" />

        <!-- We're assuming the webapp has already been built -->
        <copy file="${carrot2.code.dir}/tmp/carrot2-webapp-${carrot2.version}.war"
              tofile="${webapps.dir}/${webapp.name}.war"
              overwrite="true" />
    </target>

    <target name="publish.artifacts">
        <fail unless="dist.dir">Define: dist.dir property.</fail>

{'fraction_non_alphanumeric': 0.17770419426048564, 'fraction_numerical': 0.01131346578366446, 'mean_word_length': 3.220023282887078, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 2, '>': 76, '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': '59925', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1076, 'n_words': 223}