<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="php-skeleton" default="build" basedir="../">
    <property name="workspace" value="${basedir}"/>
    <property name="current_dir" value="${workspace}/jenkins"/>

    <target name="metrics" depends="composer_update, phpmd, phpcs, phpcpd, phploc, pdepend"/>
    <target name="documentation" depends="phpcb, phpdox"/>
    <target name="build" depends="metrics, phpunit, documentation"/>

    <target name="php_exists">
        <exec executable="which" outputproperty="php_executable">
            <arg value="php"/>
        </exec>
    </target>

    <target name="wget_exists">
        <exec executable="which" outputproperty="wget_executable">
            <arg value="wget"/>
        </exec>
    </target>

    <target name="clean">
        <delete dir="${current_dir}/build"/>
    </target>

    <target name="prepare" depends="clean">
        <mkdir dir="${current_dir}/build/log"/>
        <mkdir dir="${current_dir}/build/pdepend"/>
        <mkdir dir="${current_dir}/build/phpdox"/>
        <mkdir dir="${current_dir}/build/code-browser"/>
    </target>

    <target name="composer_exists" depends="prepare">
        <available file="composer.phar" property="composer.present"/>
    </target>

    <target name="phpmd" depends="prepare">
        <exec executable="${workspace}/bin/phpmd">
            <arg path="${workspace}/src"/>
            <arg value="xml"/>
            <arg value="${current_dir}/phpmd.xml"/>
            <arg value="--reportfile"/>
            <arg value="${current_dir}/build/log/pmd.xml"/>
        </exec>
    </target>

    <target name="phpcs" depends="prepare">
        <exec executable="${workspace}/bin/phpcs" output="/dev/null">
            <arg value="--report=checkstyle"/>
            <arg value="--report-file=${current_dir}/build/log/checkstyle.xml"/>
            <arg value="--standard=Symfony2"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phpcpd" depends="prepare">
        <exec executable="${workspace}/bin/phpcpd">
            <arg value="--log-pmd"/>
            <arg value="${current_dir}/build/log/pmd-cpd.xml"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phploc" depends="prepare">
        <exec executable="${workspace}/bin/phploc">
            <arg value="--log-csv"/>
            <arg value="${current_dir}/build/log/phploc.csv"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="pdepend" depends="prepare">
        <exec executable="${workspace}/bin/pdepend">
            <arg value="--jdepend-xml=${current_dir}/build/log/jdepend.xml"/>
            <arg value="--jdepend-chart=${current_dir}/build/pdepend/dependencies.svg"/>
            <arg value="--overview-pyramid=${current_dir}/build/pdepend/pyramid.svg"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phpdox" depends="prepare">
        <exec executable="${workspace}/bin/phpdox" dir="${current_dir}"/>
    </target>

    <target name="phpcb" depends="prepare">
        <exec executable="${workspace}/bin/phpcb">
            <arg value="--log"/>
            <arg path="${current_dir}/build/log"/>
            <arg value="--source"/>
            <arg path="${workspace}/src"/>
            <arg value="--output"/>
            <arg path="${current_dir}/build/code-browser"/>
        </exec>
    </target>

    <target name="composer_download" depends="wget_exists, composer_exists" unless="composer.present">
        <exec executable="${wget_executable}" dir="${workspace}">
            <arg value="http://getcomposer.org/composer.phar"/>
        </exec>
    </target>

    <target name="composer_update" depends="php_exists, composer_download">
        <exec executable="${php_executable}" dir="${workspace}">
            <arg value="composer.phar"/>
            <arg value="update"/>
        </exec>
    </target>

    <target name="phpunit" depends="php_exists, prepare, composer_update">
        <exec executable="${workspace}/bin/phpunit">
            <arg value="-c"/>
            <arg path="${current_dir}/phpunit.xml"/>
        </exec>
    </target>
</project>
<commit_msg>changed composer update back to install<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="php-skeleton" default="build" basedir="../">
    <property name="workspace" value="${basedir}"/>
    <property name="current_dir" value="${workspace}/jenkins"/>

    <target name="metrics" depends="composer_install, phpmd, phpcs, phpcpd, phploc, pdepend"/>
    <target name="documentation" depends="phpcb, phpdox"/>
    <target name="build" depends="metrics, phpunit, documentation"/>

    <target name="php_exists">
        <exec executable="which" outputproperty="php_executable">
            <arg value="php"/>
        </exec>
    </target>

    <target name="wget_exists">
        <exec executable="which" outputproperty="wget_executable">
            <arg value="wget"/>
        </exec>
    </target>

    <target name="clean">
        <delete dir="${current_dir}/build"/>
    </target>

    <target name="prepare" depends="clean">
        <mkdir dir="${current_dir}/build/log"/>
        <mkdir dir="${current_dir}/build/pdepend"/>
        <mkdir dir="${current_dir}/build/phpdox"/>
        <mkdir dir="${current_dir}/build/code-browser"/>
    </target>

    <target name="composer_exists" depends="prepare">
        <available file="composer.phar" property="composer.present"/>
    </target>

    <target name="phpmd" depends="prepare">
        <exec executable="${workspace}/bin/phpmd">
            <arg path="${workspace}/src"/>
            <arg value="xml"/>
            <arg value="${current_dir}/phpmd.xml"/>
            <arg value="--reportfile"/>
            <arg value="${current_dir}/build/log/pmd.xml"/>
        </exec>
    </target>

    <target name="phpcs" depends="prepare">
        <exec executable="${workspace}/bin/phpcs" output="/dev/null">
            <arg value="--report=checkstyle"/>
            <arg value="--report-file=${current_dir}/build/log/checkstyle.xml"/>
            <arg value="--standard=Symfony2"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phpcpd" depends="prepare">
        <exec executable="${workspace}/bin/phpcpd">
            <arg value="--log-pmd"/>
            <arg value="${current_dir}/build/log/pmd-cpd.xml"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phploc" depends="prepare">
        <exec executable="${workspace}/bin/phploc">
            <arg value="--log-csv"/>
            <arg value="${current_dir}/build/log/phploc.csv"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="pdepend" depends="prepare">
        <exec executable="${workspace}/bin/pdepend">
            <arg value="--jdepend-xml=${current_dir}/build/log/jdepend.xml"/>
            <arg value="--jdepend-chart=${current_dir}/build/pdepend/dependencies.svg"/>
            <arg value="--overview-pyramid=${current_dir}/build/pdepend/pyramid.svg"/>
            <arg path="${workspace}/src"/>
        </exec>
    </target>

    <target name="phpdox" depends="prepare">
        <exec executable="${workspace}/bin/phpdox" dir="${current_dir}"/>
    </target>

    <target name="phpcb" depends="prepare">
        <exec executable="${workspace}/bin/phpcb">
            <arg value="--log"/>
            <arg path="${current_dir}/build/log"/>
            <arg value="--source"/>
            <arg path="${workspace}/src"/>
            <arg value="--output"/>
            <arg path="${current_dir}/build/code-browser"/>
        </exec>
    </target>

    <target name="composer_download" depends="wget_exists, composer_exists" unless="composer.present">
        <exec executable="${wget_executable}" dir="${workspace}">
            <arg value="http://getcomposer.org/composer.phar"/>
        </exec>
    </target>

    <target name="composer_install" depends="php_exists, composer_download">
        <exec executable="${php_executable}" dir="${workspace}">
            <arg value="composer.phar"/>
            <arg value="install"/>
        </exec>
    </target>

    <target name="phpunit" depends="php_exists, prepare, composer_install">
        <exec executable="${workspace}/bin/phpunit">
            <arg value="-c"/>
            <arg path="${current_dir}/phpunit.xml"/>
        </exec>
    </target>
</project>

{'fraction_non_alphanumeric': 0.19314714855667683, 'fraction_numerical': 0.0009387467730579676, 'mean_word_length': 2.623724489795918, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 2, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '461776', 'n_tokens_mistral': 2542, 'n_tokens_neox': 2475, 'n_words': 427}