<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="UNA" basedir="." default="test">

    <property file="${project.basedir}/build.properties" override="true" />
    <property name="build" value="0" override="yes" />
    <property name="modules" value="" override="yes" />

    <if>
        <not><isset property="composer" /></not>
        <then><property name="composer" value="${project.basedir}/tests/composer.phar" override="yes" /></then>
    </if>
    <if>
        <not><isset property="php" /></not>
        <then><property name="php" value="php" override="yes" /></then>
    </if>


    <if>
        <not><isset property="db_name" /></not>
        <then><property name="db_name" value="test" override="yes" /></then>
    </if>
    <if>
        <not><isset property="db_user" /></not>
        <then><property name="db_user" value="root" override="yes" /></then>
    </if>
    <if>
        <not><isset property="db_password" /></not>
        <then><property name="db_password" value="" override="yes" /></then>
    </if>


    <if>
        <not><isset property="http_host" /></not>
        <then><property name="http_host" value="localhost" override="yes" /></then>
    </if>
    <if>
        <not><isset property="http_path" /></not>
        <then><property name="http_path" value="/" override="yes" /></then>
    </if>
    <if>
        <not><isset property="php_self" /></not>
        <then><property name="php_self" value="${http_path}install/index.php" override="yes" /></then>
    </if>
    <if>
        <and>
            <not><isset property="doc_root" /></not>
            <isset property="deploy_path" />
        </and>
        <then><property name="doc_root" value="${deploy_path}" override="yes" /></then>
    </if>


    <fileset dir="${project.basedir}" defaultexcludes="true" id="files_dist">
        <include name="**/*" />
        <exclude name="**/*.swp" />
        <exclude name="inc/header*" />
        <exclude name="build.xml" />
        <exclude name="build.properties" />
        <exclude name="storage/**/*" />
        <exclude name="samples/**" />
        <exclude name="scripts/**" />
        <exclude name="tests/**" />
        <exclude name="packages/**" />
        <exclude name="upgrade/**" />
    </fileset>

    <fileset dir="${project.basedir}" defaultexcludes="true" id="doc_files">
        <include name="**/*" />
        <exclude name="**/*.swp" />
        <exclude name="inc/header*" />
        <exclude name="build.xml" />
        <exclude name="build.properties" />
        <exclude name="storage/**/*" />
        <exclude name="samples/**" />
        <exclude name="scripts/**" />
        <exclude name="tests/**" />
        <exclude name="packages/**" />
        <exclude name="upgrade/**" />

        <exclude name="cache/**" />
        <exclude name="cache_public/**" />
        <exclude name="logs/**" />
        <exclude name="tmp/**" />
        <exclude name="plugins/**" />
        <exclude name="plugins_public/**" />
        <exclude name="modules/boonex/sites/**" />
        <exclude name="modules/boonex/membership_pricing/**" />
        <exclude name="**/updates/**" />
    </fileset>

    <!-- ============================================  -->
    <!-- Target: prepare                               -->
    <!-- ============================================  -->
    <target name="prepare">
        <echo msg="Prepage: installing necessary components" />
        <exec command="${php} ${composer} install" dir="${project.basedir}/tests" checkreturn="true" />
    </target>

    <!-- ============================================  -->
    <!-- Target: install                               -->
    <!-- ============================================  -->
    <target name="install">
        <echo msg="Installing..." />
        <if>
            <not><isset property="install_base_dir" /></not>
            <then><property name="install_base_dir" value="${project.basedir}" /></then>
        </if>
        <exec command="${php} cmd.php -m ${modules} --db_name=${db_name} --db_user=${db_user} --db_password=${<PASSWORD>} --server_http_host=${http_host} --server_php_self=${php_self} --server_doc_root=${doc_root}" dir="${install_base_dir}/install" checkreturn="true" />
    </target>

    <!-- ============================================  -->
    <!-- (DEFAULT) Target: test                        -->
    <!-- ============================================  -->
    <target name="test">
        <echo msg="Testing..." /><commit_msg>Exclude some files from docs generation<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="UNA" basedir="." default="test">

    <property file="${project.basedir}/build.properties" override="true" />
    <property name="build" value="0" override="yes" />
    <property name="modules" value="" override="yes" />

    <if>
        <not><isset property="composer" /></not>
        <then><property name="composer" value="${project.basedir}/tests/composer.phar" override="yes" /></then>
    </if>
    <if>
        <not><isset property="php" /></not>
        <then><property name="php" value="php" override="yes" /></then>
    </if>


    <if>
        <not><isset property="db_name" /></not>
        <then><property name="db_name" value="test" override="yes" /></then>
    </if>
    <if>
        <not><isset property="db_user" /></not>
        <then><property name="db_user" value="root" override="yes" /></then>
    </if>
    <if>
        <not><isset property="db_password" /></not>
        <then><property name="db_password" value="" override="yes" /></then>
    </if>


    <if>
        <not><isset property="http_host" /></not>
        <then><property name="http_host" value="localhost" override="yes" /></then>
    </if>
    <if>
        <not><isset property="http_path" /></not>
        <then><property name="http_path" value="/" override="yes" /></then>
    </if>
    <if>
        <not><isset property="php_self" /></not>
        <then><property name="php_self" value="${http_path}install/index.php" override="yes" /></then>
    </if>
    <if>
        <and>
            <not><isset property="doc_root" /></not>
            <isset property="deploy_path" />
        </and>
        <then><property name="doc_root" value="${deploy_path}" override="yes" /></then>
    </if>


    <fileset dir="${project.basedir}" defaultexcludes="true" id="files_dist">
        <include name="**/*" />
        <exclude name="**/*.swp" />
        <exclude name="inc/header*" />
        <exclude name="build.xml" />
        <exclude name="build.properties" />
        <exclude name="storage/**/*" />
        <exclude name="samples/**" />
        <exclude name="scripts/**" />
        <exclude name="tests/**" />
        <exclude name="packages/**" />
        <exclude name="upgrade/**" />
    </fileset>

    <fileset dir="${project.basedir}" defaultexcludes="true" id="doc_files">
        <include name="**/*" />
        <exclude name="**/*.swp" />
        <exclude name="inc/header*" />
        <exclude name="build.xml" />
        <exclude name="build.properties" />
        <exclude name="storage/**/*" />
        <exclude name="samples/**" />
        <exclude name="scripts/**" />
        <exclude name="tests/**" />
        <exclude name="packages/**" />
        <exclude name="upgrade/**" />

        <exclude name="cache/**" />
        <exclude name="cache_public/**" />
        <exclude name="logs/**" />
        <exclude name="tmp/**" />
        <exclude name="plugins/**" />
        <exclude name="plugins_public/**" />
        <exclude name="modules/boonex/sites/**" />
        <exclude name="modules/boonex/membership_pricing/**" />
        <exclude name="modules/boonex/froala/plugins/**" />
        <exclude name="modules/boonex/media/plugins/**" />
        <exclude name="modules/boonex/plyr/plugins/**" />
        <exclude name="**/updates/**" />        
    </fileset>

    <!-- ============================================  -->
    <!-- Target: prepare                               -->
    <!-- ============================================  -->
    <target name="prepare">
        <echo msg="Prepage: installing necessary components" />
        <exec command="${php} ${composer} install" dir="${project.basedir}/tests" checkreturn="true" />
    </target>

    <!-- ============================================  -->
    <!-- Target: install                               -->
    <!-- ============================================  -->
    <target name="install">
        <echo msg="Installing..." />
        <if>
            <not><isset property="install_base_dir" /></not>
            <then><property name="install_base_dir" value="${project.basedir}" /></then>
        </if>
        <exec command="${php} cmd.php -m ${modules} --db_name=${db_name} --db_user=${db_user} --db_password=${<PASSWORD>} --server_http_host=${http_host} --server_php_self=${php_self} --server_doc_root=${doc_root}" dir="${install_base_dir}/install" checkreturn="true" />
    </target>

    <!-- ============================================  -->
    <!-- (DEFAULT) Target: test                        -->
    <!-- ============================================  -->
    <target name="test">
        <echo msg="Testing..." />
{'fraction_non_alphanumeric': 0.26642058408424707, 'fraction_numerical': 0.0008685267614808381, 'mean_word_length': 2.5376344086021505, 'pattern_counts': {'":': 0, '<': 292, '<?xml version=': 2, '>': 292, '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': '4166772', 'n_tokens_mistral': 2795, 'n_tokens_neox': 2624, 'n_words': 483}