<commit_before><?xml version="1.0"?>
<project name="ClassGeneration" description="Creating PHP Classes dynamically" default="build" basedir=".">

    <property name="basedir" value="./"/>
    <property name="builddir" value="${basedir}/build"/>
    <property name="sourcedir" value="${basedir}/src"/>
    <property name="testdir" value="${basedir}/tests"/>

    <target name="build" depends="prepare,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit"/>

    <target name="clean" description="Cleanup build artifacts">
        <delete dir="${builddir}/api"/>
        <delete dir="${builddir}/coverage"/>
        <delete dir="${builddir}/logs"/>
        <delete dir="${builddir}/pdepend"/>
    </target>

    <target name="prepare" depends="clean" description="Prepare for build">
        <mkdir dir="${builddir}/api"/>
        <mkdir dir="${builddir}/coverage"/>
        <mkdir dir="${builddir}/logs"/>
        <mkdir dir="${builddir}/pdepend"/>
        <mkdir dir="${builddir}/phpdox"/>
    </target>

    <phplint>
        <fileset dir="${sourcedir}">
            <include name="**/*.php"/>
        </fileset>
        <fileset dir="${testdir}">
            <include name="**/*.php"/>
        </fileset>
    </phplint>

    <target name="phpcs"
            description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="phpcs">
            <arg value="--standard=PSR2"/>
            <arg path="${sourcedir}"/>
        </exec>
    </target>

    <target name="phpcs-ci"
            description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
        <exec executable="phpcs" output="/dev/null">
            <arg value="--report=checkstyle"/>
            <arg value="--report-file=${builddir}/logs/checkstyle.xml"/>
            <arg value="--standard=PSR2"/>
            <arg path="${sourcedir}"/>
        </exec>
    </target>

    <target name="phpmd" description="Perform project mess detection using PHPMD and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="phpmd">
            <arg path="${sourcedir}"/>
            <arg value="text"/>
            <arg value="${builddir}/phpmd.xml"/>
        </exec>
    </target>

    <target name="phpmd-ci"
            description="Perform project mess detection using PHPMD creating a log file for the continuous integration server">
        <exec executable="phpmd">
            <arg path="${sourcedir}"/>
            <arg value="xml"/>
            <arg value="--reportfile=${builddir}/logs/pmd.xml"/>
        </exec>
    </target>
<commit_msg>update build.xml<commit_after><?xml version="1.0"?>
<project name="ClassGeneration" description="Creating PHP Classes dynamically" default="build" basedir=".">

    <property name="basedir" value="./"/>
    <property name="builddir" value="${basedir}/build"/>
    <property name="sourcedir" value="${basedir}/src"/>
    <property name="testdir" value="${basedir}/tests"/>

    <target name="build" depends="prepare,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit"/>

    <target name="clean" description="Cleanup build artifacts">
        <delete dir="${builddir}/api"/>
        <delete dir="${builddir}/coverage"/>
        <delete dir="${builddir}/logs"/>
        <delete dir="${builddir}/pdepend"/>
    </target>

    <target name="prepare" depends="clean" description="Prepare for build">
        <mkdir dir="${builddir}/api"/>
        <mkdir dir="${builddir}/coverage"/>
        <mkdir dir="${builddir}/logs"/>
        <mkdir dir="${builddir}/pdepend"/>
        <mkdir dir="${builddir}/phpdox"/>
    </target>

    <phplint>
        <fileset dir="${sourcedir}">
            <include name="**/*.php"/>
        </fileset>
        <fileset dir="${testdir}">
            <include name="**/*.php"/>
        </fileset>
    </phplint>

    <target name="phpcs"
            description="Find coding standard violations using PHP_CodeSniffer and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="phpcs">
            <arg value="--standard=PSR2"/>
            <arg path="${sourcedir}"/>
        </exec>
    </target>

    <target name="phpcs-ci"
            description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server">
        <exec executable="phpcs" output="/dev/null">
            <arg value="--report=checkstyle"/>
            <arg value="--report-file=${builddir}/logs/checkstyle.xml"/>
            <arg value="--standard=PSR2"/>
            <arg path="${sourcedir}"/>
        </exec>
    </target>

    <target name="phpmd" description="Perform project mess detection using PHPMD and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="phpmd">
            <arg path="${sourcedir}"/>
            <arg value="text"/>
            <arg value="${builddir}/phpmd.xml"/>
        </exec>
    </target>

    <target name="phpmd-ci"
            description="Perform project mess detection using PHPMD creating a log file for the continuous integration server">
        <exec executable="phpmd">
            <arg path="${sourcedir}"/>
            <arg value="xml"/>
            <arg value="cleancode, codesize, controversial, design, naming, unusedcode"/>
            <arg value="--reportfile=${builddir}/logs/pmd.xml"/>
        </exec>
    </target>

{'fraction_non_alphanumeric': 0.16747181964573268, 'fraction_numerical': 0.0014313830738951511, 'mean_word_length': 2.74916163648558, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 2, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 11}, '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': '2292330', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1525, 'n_words': 382}