<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="deregenboog/ecd" default="default">
    <property name="console" value="${basedir}/bin/console" />
    <property name="src" value="${basedir}/src" />
    <property name="tests" value="${basedir}/tests" />
    <property name="bin" value="${basedir}/vendor/bin" />
    <property name="phpcpd" value="${bin}/phpcpd" />
    <property name="phpunit" value="${bin}/phpunit" />

    <target name="default" depends="lint,phpcpd,phpunit" />

    <target name="lint" unless="lint.done" description="Perform syntax check of sourcecode files">
        <apply executable="php" taskname="lint-php" failonerror="true">
            <arg value="-l" />
            <fileset dir="${src}">
                <include name="**/*.php" />
                <modified />
            </fileset>
            <fileset dir="${tests}">
                <include name="**/*.php" />
                <modified />
            </fileset>
        </apply>
        <exec executable="${console}" taskname="lint-twig" failonerror="true">
            <arg value="lint:twig" />
            <arg value="--env=test" />
            <arg path="${src}" />
        </exec>
        <exec executable="${console}" taskname="lint-yaml" failonerror="true">
            <arg value="lint:yaml" />
            <arg value="--env=test" />
            <arg path="${src}" />
        </exec>
        <property name="lint.done" value="true" />
    </target>

    <target name="phpcpd" unless="phpcpd.done" description="Find duplicate code using PHPCPD and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="${phpcpd}" taskname="phpcpd" failonerror="true">
            <arg path="${src}" />
            <arg value="--min-lines=75" />
        </exec>
        <property name="phpcpd.done" value="true" /><commit_msg>Dont fail on duplicate code<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="deregenboog/ecd" default="default">
    <property name="console" value="${basedir}/bin/console" />
    <property name="src" value="${basedir}/src" />
    <property name="tests" value="${basedir}/tests" />
    <property name="bin" value="${basedir}/vendor/bin" />
    <property name="phpcpd" value="${bin}/phpcpd" />
    <property name="phpunit" value="${bin}/phpunit" />

    <target name="default" depends="lint,phpcpd,phpunit" />

    <target name="lint" unless="lint.done" description="Perform syntax check of sourcecode files">
        <apply executable="php" taskname="lint-php" failonerror="true">
            <arg value="-l" />
            <fileset dir="${src}">
                <include name="**/*.php" />
                <modified />
            </fileset>
            <fileset dir="${tests}">
                <include name="**/*.php" />
                <modified />
            </fileset>
        </apply>
        <exec executable="${console}" taskname="lint-twig" failonerror="true">
            <arg value="lint:twig" />
            <arg value="--env=test" />
            <arg path="${src}" />
        </exec>
        <exec executable="${console}" taskname="lint-yaml" failonerror="true">
            <arg value="lint:yaml" />
            <arg value="--env=test" />
            <arg path="${src}" />
        </exec>
        <property name="lint.done" value="true" />
    </target>

    <target name="phpcpd" unless="phpcpd.done" description="Find duplicate code using PHPCPD and print human readable output. Intended for usage on the command line before committing.">
        <exec executable="${phpcpd}" taskname="phpcpd" failonerror="false">
            <arg path="${src}" />
            <arg value="--min-lines=75" />
        </exec>
        <property name="phpcpd.done" value="true" />
{'fraction_non_alphanumeric': 0.18956844056129202, 'fraction_numerical': 0.0026476039184537992, 'mean_word_length': 2.4820276497695852, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 2, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3647227', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1084, 'n_words': 234}