<commit_before><?xml version='1.0'?>
<!--

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

-->

<project default="javasources" name="Ant task examples">
  <description>
    A few examples of using the Ant task, for more examples see the
    AntUnit tests
  </description>

  <property name="src-dir" location="apache-rat-core/src/main/java"/>
  <property name="version" value="0.7-SNAPSHOT"/>
  <property name="core-jar"
            location="apache-rat-core/target/apache-rat-core-${version}.jar"/>
  <property name="src-jar"
            location="apache-rat-core/target/apache-rat-core-${version}-sources.jar"/>

  <target name="javasources" depends="-taskdef"
    description="runs the tasks over RAT's source tree excluding the license directory">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <fileset dir="${src-dir}">
        <exclude name="rat/license/"/>
      </fileset>
    </rat:report>
  </target>

  <target name="jar" depends="-taskdef"
    description="runs the task over RAT's source tree">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <zipfileset src="${src-jar}"/>
    </rat:report>
  </target>

  <target name="tarball" depends="-taskdef"
    description="creates a tarball of RAT's source tree and runs the task over the tarball">
    <tar destfile="ratsrc.tar.gz" compression="gzip">
      <fileset dir="${src-dir}"/>
    </tar>
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <tarfileset>
        <gzipresource>
          <file file="ratsrc.tar.gz"/>
        </gzipresource>
      </tarfileset>
    </rat:report>
    <delete file="ratsrc.tar.gz"/>
  </target>

  <target name="javasources-w3c" depends="-taskdef"
    description="runs the tasks over RAT's source tree accepting only the W3C license">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
      addDefaultLicenseMatchers="false">
      <fileset dir="${src-dir}"/>

      <rat:w3c/>

    </rat:report>
  </target>

  <target name="url" depends="-taskdef"
    description="runs the task on the ASF's homepage">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <url url="http://www.apache.org/"/>
    </rat:report>
  </target>

  <target name="run-on-rat" depends="-taskdef">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <fileset dir="."/>
    </rat:report>
  </target>

  <target name="-taskdef">
    <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">
      <classpath>
        <fileset dir=".">
           <include name="**/apache-rat*.jar"/>
           <include name="**/commons-*.jar"/>
        </fileset>
      </classpath>
    </typedef>
  </target>
</project><commit_msg>wrong URI in typedef.  Submitted by <NAME>. RAT-63<commit_after><?xml version='1.0'?>
<!--

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

-->

<project default="javasources" name="Ant task examples">
  <description>
    A few examples of using the Ant task, for more examples see the
    AntUnit tests
  </description>

  <property name="src-dir" location="apache-rat-core/src/main/java"/>
  <property name="version" value="0.7-SNAPSHOT"/>
  <property name="core-jar"
            location="apache-rat-core/target/apache-rat-core-${version}.jar"/>
  <property name="src-jar"
            location="apache-rat-core/target/apache-rat-core-${version}-sources.jar"/>

  <target name="javasources" depends="-taskdef"
    description="runs the tasks over RAT's source tree excluding the license directory">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <fileset dir="${src-dir}">
        <exclude name="rat/license/"/>
      </fileset>
    </rat:report>
  </target>

  <target name="jar" depends="-taskdef"
    description="runs the task over RAT's source tree">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <zipfileset src="${src-jar}"/>
    </rat:report>
  </target>

  <target name="tarball" depends="-taskdef"
    description="creates a tarball of RAT's source tree and runs the task over the tarball">
    <tar destfile="ratsrc.tar.gz" compression="gzip">
      <fileset dir="${src-dir}"/>
    </tar>
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <tarfileset>
        <gzipresource>
          <file file="ratsrc.tar.gz"/>
        </gzipresource>
      </tarfileset>
    </rat:report>
    <delete file="ratsrc.tar.gz"/>
  </target>

  <target name="javasources-w3c" depends="-taskdef"
    description="runs the tasks over RAT's source tree accepting only the W3C license">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
      addDefaultLicenseMatchers="false">
      <fileset dir="${src-dir}"/>

      <rat:w3c/>

    </rat:report>
  </target>

  <target name="url" depends="-taskdef"
    description="runs the task on the ASF's homepage">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <url url="http://www.apache.org/"/>
    </rat:report>
  </target>

  <target name="run-on-rat" depends="-taskdef">
    <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
      <fileset dir="."/>
    </rat:report>
  </target>

  <target name="-taskdef">
    <typedef resource="org/apache/rat/anttasks/antlib.xml"
             uri="antlib:org.apache.rat.anttasks">
      <classpath>
        <fileset dir=".">
           <include name="**/apache-rat*.jar"/>
           <include name="**/commons-*.jar"/>
        </fileset>
      </classpath>
    </typedef>
  </target>
</project>
{'fraction_non_alphanumeric': 0.15436032955075393, 'fraction_numerical': 0.003730763251981968, 'mean_word_length': 3.297929191716767, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 2, '>': 126, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 16}, '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': '6234436', 'n_tokens_mistral': 2051, 'n_tokens_neox': 1987, 'n_words': 512}