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

<project name="Lucene" default="default" basedir=".">

  <!-- Give user a chance to override without editing this file
      (and without typing -D each time it compiles it -->
  <property file="${user.home}/lucene.build.properties"/>
  <property file="${user.home}/build.properties"/>
  <property file="${basedir}/build.properties"/>

  <property name="name" value="lucene"/>
  <property name="Name" value="Lucene"/>
  <property name="version" value="1.3-rc2-dev"/>
  <property name="year" value="2000-2003"/> <!-- todo: make this dynamic -->
  <property name="final.name" value="${name}-${version}"/>
  <property name="javac.debug" value="on"/>
  <property name="project.name" value="site"/> <!-- todo: is this used by anakia or something else? -->
  <property name="javadoc.link" value="http://java.sun.com/j2se/1.4/docs/api/"/>
  <property name="build.compiler.pedantic" value="false"/>
  <property name="build.encoding" value="ISO-8859-1"/>

  <property name="build.dir" location="build"/>
  <property name="dist.dir" location="dist"/>

  <property name="demo.name" value="${name}-demos-${version}"/>
  <property name="demo.war.name" value="luceneweb"/>

  <property name="javacc.home" location="."/>
  <property name="javacc.jar.dir" location="${javacc.home}/bin/lib"/>
  <property name="javacc.jar" location="${javacc.jar.dir}/javacc.jar"/>
  <property name="javacc.main.class" value="org.javacc.parser.Main"/>

  <property name="jakarta.site2.home" location="../jakarta-site2"/>

  <property name="junit.output.dir" location="${build.dir}/test"/>
  <property name="junit.reports" location="${build.dir}/test/reports"/>

  <!-- Build classpath -->
  <path id="classpath">
    <pathelement location="${build.dir}/classes/java"/>
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
  </path>

  <path id="demo.classpath">
    <path refid="classpath"/>
    <pathelement location="${build.dir}/classes/demo"/>
  </path>

  <path id="test.classpath">
    <path refid="demo.classpath"/>
    <pathelement location="${build.dir}/classes/test"/>
  </path>

  <path id="junit.classpath">
    <pathelement location="${build.dir}/classes/test"/>
    <pathelement location="${build.dir}/classes/java"/>
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
    <pathelement path="${java.class.path}"/>
  </path>

  <path id="anakia.classpath">
    <fileset dir="${jakarta.site2.home}/lib">
      <include name="*.jar"/>
    </fileset>
  </path>

  <!-- ================================================================== -->
  <!-- Prepares the build directory                                       -->
  <!-- ================================================================== -->
  <target name="init">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${dist.dir}"/>

    <available
      property="javacc.present"
      classname="${javacc.main.class}"<commit_msg>Added demo to junit's classpath. This is needed by some of the new test cases.<commit_after><?xml version="1.0"?>

<project name="Lucene" default="default" basedir=".">

  <!-- Give user a chance to override without editing this file
      (and without typing -D each time it compiles it -->
  <property file="${user.home}/lucene.build.properties"/>
  <property file="${user.home}/build.properties"/>
  <property file="${basedir}/build.properties"/>

  <property name="name" value="lucene"/>
  <property name="Name" value="Lucene"/>
  <property name="version" value="1.3-rc2-dev"/>
  <property name="year" value="2000-2003"/> <!-- todo: make this dynamic -->
  <property name="final.name" value="${name}-${version}"/>
  <property name="javac.debug" value="on"/>
  <property name="project.name" value="site"/> <!-- todo: is this used by anakia or something else? -->
  <property name="javadoc.link" value="http://java.sun.com/j2se/1.4/docs/api/"/>
  <property name="build.compiler.pedantic" value="false"/>
  <property name="build.encoding" value="ISO-8859-1"/>

  <property name="build.dir" location="build"/>
  <property name="dist.dir" location="dist"/>

  <property name="demo.name" value="${name}-demos-${version}"/>
  <property name="demo.war.name" value="luceneweb"/>

  <property name="javacc.home" location="."/>
  <property name="javacc.jar.dir" location="${javacc.home}/bin/lib"/>
  <property name="javacc.jar" location="${javacc.jar.dir}/javacc.jar"/>
  <property name="javacc.main.class" value="org.javacc.parser.Main"/>

  <property name="jakarta.site2.home" location="../jakarta-site2"/>

  <property name="junit.output.dir" location="${build.dir}/test"/>
  <property name="junit.reports" location="${build.dir}/test/reports"/>

  <!-- Build classpath -->
  <path id="classpath">
    <pathelement location="${build.dir}/classes/java"/>
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
  </path>

  <path id="demo.classpath">
    <path refid="classpath"/>
    <pathelement location="${build.dir}/classes/demo"/>
  </path>

  <path id="test.classpath">
    <path refid="demo.classpath"/>
    <pathelement location="${build.dir}/classes/test"/>
  </path>

  <path id="junit.classpath">
    <pathelement location="${build.dir}/classes/test"/>
    <pathelement location="${build.dir}/classes/java"/>
    <pathelement location="${build.dir}/classes/demo"/>
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
    <pathelement path="${java.class.path}"/>
  </path>

  <path id="anakia.classpath">
    <fileset dir="${jakarta.site2.home}/lib">
      <include name="*.jar"/>
    </fileset>
  </path>

  <!-- ================================================================== -->
  <!-- Prepares the build directory                                       -->
  <!-- ================================================================== -->
  <target name="init">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${dist.dir}"/>

    <available
      property="javacc.present"
      classname="${javacc.main.class}"
{'fraction_non_alphanumeric': 0.25046009703864813, 'fraction_numerical': 0.008030784674585912, 'mean_word_length': 3.8720456397718013, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 2, '>': 130, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4166773', 'n_tokens_mistral': 1888, 'n_tokens_neox': 1800, 'n_words': 351}