<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="TwigBridge" default="build">

    <target name="build" depends="prepare,lint,phpcs,phpunit" />
    <target name="build-ci" depends="prepare,lint,phpcs-ci,phpunit" />

    <target name="clean">
        <delete dir="${project.basedir}/build" quiet="true" includeemptydirs="true" />
    </target>

    <target name="prepare" depends="clean">
        <mkdir dir="${project.basedir}/build/coverage" />
        <mkdir dir="${project.basedir}/build/logs" />
    </target>

    <target name="lint">
        <phplint haltonfailure="true">
            <fileset dir="${project.basedir}/src">
                <include name="**/*.php"/>
            </fileset>
        </phplint>
    </target>

    <target name="phpcs">
        <exec executable="${project.basedir}/vendor/bin/phpcs" passthru="true" checkreturn="true">
            <arg value="--standard=PSR2" />
            <arg value="--extensions=php" />
            <arg path="${project.basedir}/src" />
        </exec>
    </target>

    <target name="phpcs-ci">
        <exec executable="${project.basedir}/vendor/bin/phpcs" passthru="true" checkreturn="true">
            <arg value="--report=checkstyle" />
            <arg value="--report-file=${project.basedir}/build/logs/checkstyle.xml" />
            <arg value="--standard=PSR2" />
            <arg value="--extensions=php" />
            <arg path="${project.basedir}/src" />
        </exec>
    </target>

    <target name="phpunit" description="Run unit tests with PHPUnit">
        <exec executable="${project.basedir}/vendor/bin/phpunit" checkreturn="true" passthru="true">
            <arg value="--configuration" />
            <arg value="${project.basedir}/phpunit.xml" />
        </exec>
    </target>

</project><commit_msg>Skip phpcs on travis for now<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="TwigBridge" default="build">

    <target name="build" depends="prepare,lint,phpcs,phpunit" />
    <target name="build-ci" depends="prepare,lint,phpcs-ci,phpunit" />

    <target name="clean">
        <delete dir="${project.basedir}/build" quiet="true" includeemptydirs="true" />
    </target>

    <target name="prepare" depends="clean">
        <mkdir dir="${project.basedir}/build/coverage" />
        <mkdir dir="${project.basedir}/build/logs" />
    </target>

    <target name="lint">
        <phplint haltonfailure="true">
            <fileset dir="${project.basedir}/src">
                <include name="**/*.php"/>
            </fileset>
        </phplint>
    </target>

    <target name="phpcs">
        <exec executable="${project.basedir}/vendor/bin/phpcs" passthru="true" checkreturn="true">
            <arg value="--standard=PSR2" />
            <arg value="--extensions=php" />
            <arg path="${project.basedir}/src" />
        </exec>
    </target>

    <target name="phpcs-ci">
        <echo msg="Skipped due to issue on TravisCI" level="warning" />
    </target>

    <target name="phpunit" description="Run unit tests with PHPUnit">
        <exec executable="${project.basedir}/vendor/bin/phpunit" checkreturn="true" passthru="true">
            <arg value="--configuration" />
            <arg value="${project.basedir}/phpunit.xml" />
        </exec>
    </target>

</project>
{'fraction_non_alphanumeric': 0.18984280532043532, 'fraction_numerical': 0.002720677146311971, 'mean_word_length': 2.6848552338530065, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '6141635', 'n_tokens_mistral': 1024, 'n_tokens_neox': 996, 'n_words': 173}