<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="symfony-ci-jenkins" default="full-build">
    <!-- By default, we assume all tools to be on the $PATH -->
    <property name="composer" value="composer"/>
    <property name="pdepend" value="pdepend"/>
    <property name="phpcpd"  value="phpcpd"/>
    <property name="phpcs"   value="phpcs"/>
    <property name="phpdox"  value="phpdox"/>
    <property name="phploc"  value="phploc"/>
    <property name="phpmd"   value="phpmd"/>
    <property name="phpunit" value="phpunit"/>

    <!-- Use this when the tools are located as PHARs in ${basedir}/build/tools
    <property name="pdepend" value="${basedir}/build/tools/pdepend.phar"/>
    <property name="phpcpd"  value="${basedir}/build/tools/phpcpd.phar"/>
    <property name="phpcs"   value="${basedir}/build/tools/phpcs.phar"/>
    <property name="phpdox"  value="${basedir}/build/tools/phpdox.phar"/>
    <property name="phploc"  value="${basedir}/build/tools/phploc.phar"/>
    <property name="phpmd"   value="${basedir}/build/tools/phpmd.phar"/>
    <property name="phpunit" value="${basedir}/build/tools/phpunit.phar"/> -->

    <!-- Use this when the tools are managed by Composer in ${basedir}/vendor/bin
    <property name="pdepend" value="${basedir}/vendor/bin/pdepend"/>
    <property name="phpcpd"  value="${basedir}/vendor/bin/phpcpd"/>
    <property name="phpcs"   value="${basedir}/vendor/bin/phpcs"/>
    <property name="phpdox"  value="${basedir}/vendor/bin/phpdox"/>
    <property name="phploc"  value="${basedir}/vendor/bin/phploc"/>
    <property name="phpmd"   value="${basedir}/vendor/bin/phpmd"/>
    <property name="phpunit" value="${basedir}/vendor/bin/phpunit"/> -->

    <target name="full-build"
            depends="prepare,composer,static-analysis,phpunit,phpdox,-check-failure"
            description="Performs static analysis, runs the tests, and generates project documentation"/>

    <target name="full-build-parallel"
            depends="prepare,composer,static-analysis-parallel,phpunit,phpdox,-check-failure"
            description="Performs static analysis (executing the tools in parallel), runs the tests, and generates project documentation"/>

    <target name="quick-build"
            depends="prepare,composer,lint,phpunit-no-coverage"
            description="Performs a lint check and runs the tests (without generating code coverage reports)"/>

    <target name="static-analysis"
            depends="lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci"
            description="Performs static analysis" />

    <!-- Adjust the threadCount attribute's value to the number of CPUs -->
    <target name="static-analysis-parallel"
            description="Performs static analysis (executing the tools in parallel)">
        <parallel threadCount="2">
            <sequential>
                <antcall target="pdepend"/>
                <antcall target="phpmd-ci"/>
            </sequential>
            <antcall target="lint"/>
            <antcall target="phpcpd-ci"/>
            <antcall target="phpcs-ci"/>
            <antcall target="phploc-ci"/>
        </parallel>
    </target>

    <target name="clean"
            unless="clean.done"
            description="Cleanup build artifacts">
        <delete dir="${basedir}/build/api"/>
        <delete dir="${basedir}/build/coverage"/>
        <delete dir="${basedir}/build/logs"/>
        <delete dir="${basedir}/build/pdepend"/>
        <delete dir="${basedir}/build/phpdox"/>
        <property name="clean.done" value="true"/>
    </target>

    <target name="prepare"
            unless="prepare.done"
            depends="clean"
            description="Prepare for build">
        <mkdir dir="${basedir}/build/api"/>
        <mkdir dir="${basedir}/build/coverage"/>
        <mkdir dir="${basedir}/build/logs"/>
        <mkdir dir="${basedir}/build/pdepend"/>
        <mkdir dir="${basedir}/build/phpdox"/>
        <property name="prepare.done" value="true"/>
        <copy file="${basedir}/phpunit.xml.dist" tofile="${basedir}/phpunit.xml"/>
        <copy file="${basedir}/app/config/parameters.yml.dist" tofile="${basedir}/app/config/parameters.yml"/>
    </target>

    <target name="composer-selfupdate" unless="composer.noselfupdate">
        <exec executable="${composer}">
            <arg value="self-update"/>
            <arg value="--quiet"/>
        </exec>
    </target>

    <target name="composer" depends="composer-selfupdate" unless="composer.noupdate" description="Run composer install">
        <exec executable="${composer}">
            <arg value="install"/>
        </exec>
    </target>

    <target name="lint"
            unless="lint.done"
            description="Perform syntax check of sourcecode files">
        <apply executable="php" taskname="lint">
            <arg value="-l" />

            <fileset dir="${basedir}/src">
                <include name="**/*.php" />
                <modified />
            </fileset>

            <fileset dir="${basedir}/tests">
                <include name="**/*.php" /><commit_msg>first test<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="symfony-ci-jenkins" default="full-build">
    <!-- By default, we assume all tools to be on the $PATH -->
    <property name="composer" value="composer"/>
    <property name="pdepend" value="pdepend"/>
    <property name="phpcpd"  value="phpcpd"/>
    <property name="phpcs"   value="phpcs"/>
    <property name="phpdox"  value="phpdox"/>
    <property name="phploc"  value="phploc"/>
    <property name="phpmd"   value="phpmd"/>
    <property name="phpunit" value="phpunit"/>

    <!-- Use this when the tools are located as PHARs in ${basedir}/build/tools
    <property name="pdepend" value="${basedir}/build/tools/pdepend.phar"/>
    <property name="phpcpd"  value="${basedir}/build/tools/phpcpd.phar"/>
    <property name="phpcs"   value="${basedir}/build/tools/phpcs.phar"/>
    <property name="phpdox"  value="${basedir}/build/tools/phpdox.phar"/>
    <property name="phploc"  value="${basedir}/build/tools/phploc.phar"/>
    <property name="phpmd"   value="${basedir}/build/tools/phpmd.phar"/>
    <property name="phpunit" value="${basedir}/build/tools/phpunit.phar"/> -->

    <!-- Use this when the tools are managed by Composer in ${basedir}/vendor/bin
    <property name="pdepend" value="${basedir}/vendor/bin/pdepend"/>
    <property name="phpcpd"  value="${basedir}/vendor/bin/phpcpd"/>
    <property name="phpcs"   value="${basedir}/vendor/bin/phpcs"/>
    <property name="phpdox"  value="${basedir}/vendor/bin/phpdox"/>
    <property name="phploc"  value="${basedir}/vendor/bin/phploc"/>
    <property name="phpmd"   value="${basedir}/vendor/bin/phpmd"/>
    <property name="phpunit" value="${basedir}/vendor/bin/phpunit"/> -->

    <target name="full-build"
            depends="prepare,composer,static-analysis,phpunit,phpdox,-check-failure"
            description="Performs static analysis, runs the tests, and generates project documentation"/>

    <target name="full-build-parallel"
            depends="prepare,composer,static-analysis-parallel,phpunit,phpdox,-check-failure"
            description="Performs static analysis (executing the tools in parallel), runs the tests, and generates project documentation"/>

    <target name="quick-build"
            depends="prepare,composer,lint,phpunit-no-coverage"
            description="Performs a lint check and runs the tests (without generating code coverage reports)"/>

    <target name="static-analysis"
            depends="lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci"
            description="Performs static analysis" />

    <!-- Adjust the threadCount attribute's value to the number of CPUs -->
    <target name="static-analysis-parallel"
            description="Performs static analysis (executing the tools in parallel)">
        <parallel threadCount="2">
            <sequential>
                <antcall target="pdepend"/>
                <antcall target="phpmd-ci"/>
            </sequential>
            <antcall target="lint"/>
            <antcall target="phpcpd-ci"/>
            <antcall target="phpcs-ci"/>
            <antcall target="phploc-ci"/>
        </parallel>
    </target>

    <target name="clean"
            unless="clean.done"
            description="Cleanup build artifacts">
        <delete dir="${basedir}/build/api"/>
        <delete dir="${basedir}/build/coverage"/>
        <delete dir="${basedir}/build/logs"/>
        <delete dir="${basedir}/build/pdepend"/>
        <delete dir="${basedir}/build/phpdox"/>
        <property name="clean.done" value="true"/>
    </target>

    <target name="prepare"
            unless="prepare.done"
            depends="clean"
            description="Prepare for build">
        <mkdir dir="${basedir}/build/api"/>
        <mkdir dir="${basedir}/build/coverage"/>
        <mkdir dir="${basedir}/build/logs"/>
        <mkdir dir="${basedir}/build/pdepend"/>
        <mkdir dir="${basedir}/build/phpdox"/>
        <copy file="${basedir}/phpunit.xml.dist" tofile="${basedir}/phpunit.xml"/>
        <copy file="${basedir}/app/config/parameters.yml.dist" tofile="${basedir}/app/config/parameters.yml"/>
        <property name="prepare.done" value="true"/>
    </target>

    <target name="composer-selfupdate" unless="composer.noselfupdate">
        <exec executable="${composer}">
            <arg value="self-update"/>
            <arg value="--quiet"/>
        </exec>
    </target>

    <target name="composer" depends="composer-selfupdate" unless="composer.noupdate" description="Run composer install">
        <exec executable="${composer}">
            <arg value="install"/>
        </exec>
    </target>

    <target name="lint"
            unless="lint.done"
            description="Perform syntax check of sourcecode files">
        <apply executable="php" taskname="lint">
            <arg value="-l" />

            <fileset dir="${basedir}/src">
                <include name="**/*.php" />
                <modified />
            </fileset>

            <fileset dir="${basedir}/tests">
                <include name="**/*.php" />
{'fraction_non_alphanumeric': 0.17130494640574295, 'fraction_numerical': 0.0007867046907267185, 'mean_word_length': 2.8728103579588726, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 2, '>': 167, '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': '1288221', 'n_tokens_mistral': 2964, 'n_tokens_neox': 2920, 'n_words': 583}