<commit_before><?xml version="1.0"?>

<!-- ===================================================================
     Load the deployment configuration from the properties file. We also load
     the run time options and define some properties based on some of the
     values found there
     =================================================================== -->
<project name="dirTools" basedir="." default="">

  <!-- =================================================================
       Build and run the directory tools
       ================================================================= -->

  <target name="dirToolInit" >
    <property name="app.dest.classes"
              location="${org.bedework.project.bedework}/dist/tools/classes" />

    <delete dir="${app.dest.classes}" />
    <mkdir dir="${app.dest.classes}" />

    <path id="run.classpath">
      <fileset dir="${org.bedework.project.bedework}/dist/tools">
         <include name="*.jar"/>
      </fileset>
      <pathelement location="${org.bedework.project.bwtools}/resources" />
      <pathelement location="${app.dest.classes}" />
    </path>

    <copy todir="${app.dest.classes}"
          file="${org.bedework.project.bwtools}/resources/log4j.xml" />

    <pathconvert property="run.txt.classpath"
                 refid="run.classpath"
                 targetos="unix"  pathsep=":" />
  </target>

  <target name="initDir" 
          description="Build and run directory init">
    <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
              target="initDir"
              return="org.bedework.directory.init.status" >
      <propertyset>
        <propertyref prefix="org.bedework.directory."/>
      </propertyset>
      <property name="org.bedework.libcache.dir"
                location="${org.bedework.project.bedework}/libcache"/><commit_msg>Fix dirTools after move of bwtools to separate project broke it.<commit_after><?xml version="1.0"?>

<!-- ===================================================================
     Load the deployment configuration from the properties file. We also load
     the run time options and define some properties based on some of the
     values found there
     =================================================================== -->
<project name="dirTools" basedir="." default="">

  <!-- =================================================================
       Build and run the directory tools
       ================================================================= -->

  <target name="dirToolInit" >
    <property name="org.bedework.project.bwtools"
              location="${org.bedework.project.bedework}/../bwtools" />
      
    <property name="app.dest.classes"
              location="${org.bedework.project.bwtools}/dist/tools/classes" />

    <delete dir="${app.dest.classes}" />
    <mkdir dir="${app.dest.classes}" />

    <path id="run.classpath">
      <fileset dir="${org.bedework.project.bwtools}/dist">
         <include name="*.jar"/>
      </fileset>
        <fileset dir="${org.bedework.project.bwtools}/lib">
           <include name="*.jar"/>
        </fileset>
      <pathelement location="${org.bedework.project.bwtools}/resources" />
      <pathelement location="${app.dest.classes}" />
    </path>

    <copy todir="${app.dest.classes}"
          file="${org.bedework.project.bwtools}/resources/log4j.xml" />

    <pathconvert property="run.txt.classpath"
                 refid="run.classpath"
                 targetos="unix"  pathsep=":" />
  </target>

  <target name="initDir" 
          description="Build and run directory init">
    <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
              target="initDir"
              return="org.bedework.directory.init.status" >
      <propertyset>
        <propertyref prefix="org.bedework.directory."/>
      </propertyset>
      <property name="org.bedework.libcache.dir"
                location="${org.bedework.project.bedework}/libcache"/>
{'fraction_non_alphanumeric': 0.2689054726368159, 'fraction_numerical': 0.0014925373134328358, 'mean_word_length': 3.1539256198347108, 'pattern_counts': {'":': 2, '<': 55, '<?xml version=': 2, '>': 55, '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': '1310140', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1024, 'n_words': 193}