<commit_before><?xml version="1.0" encoding="UTF-8"?>

<project name="stockholme" default="build">

  <target name="clean">
    <delete dir="build"/>
  </target>

  <target name="dirs">
    <mkdir dir="build"/>
  </target>

  <target name="unit-tests">
    <phpunit bootstrap="tests/Bootstrap.php" haltonfailure="true">
      <formatter type="summary" usefile="false"/>
      <batchtest>
        <fileset dir="tests/unit">
          <include name="**/*Test.php"/>
        </fileset>
      </batchtest>
    </phpunit>
  </target>

  <target name="lint">
    <phplint>
      <fileset dir="lib">
        <include name="**/*.php"/>
      </fileset>
      <fileset dir="tests">
        <include name="**/*.php"/>
      </fileset>
    </phplint>
  </target>

  <target name="phploc" depends="dirs">
    <exec executable="phploc">
      <arg value="--log-csv"/>
      <arg value="build/phploc.csv"/>
      <arg path="lib"/>
    </exec>
  </target>
</project><commit_msg>Added more PHP metrics in build.xml<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="stockholme" default="build">

  <target name="clean">
    <delete dir="build"/>
  </target>

  <target name="dirs">
    <mkdir dir="build"/>
    <mkdir dir="build/logs"/>
    <mkdir dir="build/pdepend"/>
  </target>

  <target name="unit-tests">
    <phpunit bootstrap="tests/Bootstrap.php" haltonfailure="true">
      <formatter type="summary" usefile="false"/>
      <batchtest>
        <fileset dir="tests/unit">
          <include name="**/*Test.php"/>
        </fileset>
      </batchtest>
    </phpunit>
  </target>

  <target name="lint">
    <phplint>
      <fileset dir="lib">
        <include name="**/*.php"/>
      </fileset>
      <fileset dir="tests">
        <include name="**/*.php"/>
      </fileset>
    </phplint>
  </target>

  <target name="pdepend" depends="dirs"
    description="Calculate software metrics with PHP_Depend">
    <exec executable="pdepend">
      <arg value="--jdepend-xml=build/logs/jdepend.xml"/>
      <arg value="--jdepend-chart=build/pdepend/dependencies.svg"/>
      <arg value="--overview-pyramid=build/pdepend/overview-pyramid.svg"/>
      <arg path="lib"/>
    </exec>
  </target>

  <target name="phploc" description="Count LOC" depends="dirs">
    <exec executable="phploc">
      <arg value="--log-csv"/>
      <arg value="build/phploc.csv"/>
      <arg path="lib"/>
    </exec>
  </target>

  <target name="phpcpd" description="Duplicate code check with phpcpd"
    depends="dirs">
    <exec executable="phpcpd">
      <arg value="--log-pmd"/>
      <arg value="build/logs/pmd-cpd.xml"/>
      <arg path="lib"/>
    </exec>
  </target>

</project>
{'fraction_non_alphanumeric': 0.2021755438859715, 'fraction_numerical': 0.002250562640660165, 'mean_word_length': 2.826398852223816, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 2, '>': 92, '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': '3886605', 'n_tokens_mistral': 920, 'n_tokens_neox': 893, 'n_words': 172}