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

<!-- ===================================================================
     This file builds a runnable application wrapped up as a zip file.
     Unpacking the zip should result in a directory containing a shell
     script, a set of jars and any other resources needed.

     Properties we need:
       app.core.env.pname     core properties source
       app.run.shellscr       location of the skeleton shell script.
       app.run.jar.file       application jar file
       app.run.main.class     main class for application.

     Authors: <NAME>   <EMAIL>
     =================================================================== -->

<project name="uwcal.buildsh" default="build">
  <target name="init">
    <!-- Load the location of the libraries -->
    <property file="${org.bedework.project.bedework}/build/libjars.properties" />

    <!-- Destinations - where we build stuff -->
    <property name="app.dest.home"
              location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" />
    <property name="app.dest.lib"
              location="${app.dest.home}/lib" />
    <property name="app.dest.classes"
              location="${app.dest.home}/classes" />
    <property name="app.dest.properties"
              location="${app.dest.classes}/properties/calendar" />
    <property name="app.dest.resources"
              location="${app.dest.home}/resources" />
    <property name="app.dest.data"
              location="${app.dest.home}/data" />

    <property name="app.zip.file"
              location="${dist.home}/${propval.app.zip.name}.zip" />
  </target>

  <!-- ================================================================
       build target
       ================================================================ -->

  <target name="build" depends="init">
    <filterset id="property.filters" >
      <filter token="BW-APP-NAME"
              value="${org.bedework.deploy.name}"/>

      <filter token="HIBERNATE-DIALECT"
              value="${org.bedework.global.hibernate.dialect}" />

      <filter token="DIRECTORY-BROWSING-DISALLOWED"
              value="${org.bedework.global.directory.browsing.disallowed}" />

      <filter token="APP-DESCRIPTION"
              value="${propval.app.description}" />

      <filter token="CALDAVTEST-CLASS"
              value="org.bedework.caldav.test.TestCalDav"/>

      <filter token="DUMP-CLASS"
              value="org.bedework.dumprestore.dump.Dump"/>
      <filter token="RESTORE-CLASS"
              value="org.bedework.dumprestore.restore.Restore"/>

      <filter token="APP-NAME"
              value="${propval.app.name}"/>
      <filter token="APP-VERSION"
              value="${propval.app.version}"/>
    </filterset>

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

    <!-- Library stuff -->

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

    <copy todir="${app.dest.lib}">
      <fileset dir="${hibernate.jars.dir}">
        <include name="*.jar"/>
      </fileset>
    </copy>

    <copy todir="${app.dest.lib}" file="${commons-collections.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-logging.jar}"/>

    <!-- core files -->

    <copy todir="${app.dest.lib}" overwrite="yes">
      <fileset dir="${bin.home}">
        <!-- jars from sub-projects needed by all -->
        <include name="rpiaccess*.jar"/>
        <include name="rpiutil*.jar"/>
        <include name="bw-davdefs*.jar"/>
        <include name="bw-davio*.jar"/>

        <!-- Calendar api jars -->
        <include name="bw-calcore*.jar"/>
        <include name="bw-calcorei*.jar"/>
        <include name="bw-calenv*.jar"/>
        <include name="bw-calfacade*.jar"/>
        <include name="bw-calsvc*.jar"/>
        <include name="bw-calsvci*.jar"/>
        <include name="bw-icalendar*.jar"/>
        <include name="bw-locale*.jar"/>
        <include name="bw-logging*.jar"/>
      </fileset>
    </copy>

     <!-- any extra bin files-->
    <copy todir="${app.dest.lib}" >
      <fileset refid="app.bin.files" />
    </copy>

    <!-- Some more standard libs -->
    <copy todir="${app.dest.lib}" file="${log4j.jar}"/>
    <copy todir="${app.dest.lib}" file="${ical4j.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-digester.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-httpclient.jar}"/>

    <!-- Extra libraries specified in calling build file -->
    <copy todir="${app.dest.lib}" flatten="yes" >
      <fileset refid="org.bedework.run.jars" />
      <fileset refid="org.bedework.run.lib.jars" />

      <!-- local jdbc drivers -->
      <fileset dir="${org.bedework.jdbc.lib}">
        <include name="*.jar"/>
      </fileset>
    </copy>

    <!-- Include the quickstart jdbc driver -->
    <copy todir="${app.dest.lib}" file="${hsqldb.jdbcdriver.jar}"/>

    <copy todir="${app.dest.classes}">
      <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" />
      <filterset refid="property.filters" />
    </copy>

    <copy todir="${app.dest.classes}">
      <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" />
      <filterset refid="property.filters" />
    </copy>

    <copy todir="${app.dest.classes}" overwrite="yes" ><commit_msg>Add class to represent translated icalendar objects. Stores method, prodid etc. Related changes to a number of components<commit_after><?xml version="1.0"?>

<!-- ===================================================================
     This file builds a runnable application wrapped up as a zip file.
     Unpacking the zip should result in a directory containing a shell
     script, a set of jars and any other resources needed.

     Properties we need:
       app.core.env.pname     core properties source
       app.run.shellscr       location of the skeleton shell script.
       app.run.jar.file       application jar file
       app.run.main.class     main class for application.

     Authors: <NAME>   <EMAIL>
     =================================================================== -->

<project name="uwcal.buildsh" default="build">
  <target name="init">
    <!-- Load the location of the libraries -->
    <property file="${org.bedework.project.bedework}/build/libjars.properties" />

    <!-- Destinations - where we build stuff -->
    <property name="app.dest.home"
              location="${org.bedework.temp.shellscr.home}/${propval.app.zip.name}" />
    <property name="app.dest.lib"
              location="${app.dest.home}/lib" />
    <property name="app.dest.classes"
              location="${app.dest.home}/classes" />
    <property name="app.dest.properties"
              location="${app.dest.classes}/properties/calendar" />
    <property name="app.dest.resources"
              location="${app.dest.home}/resources" />
    <property name="app.dest.data"
              location="${app.dest.home}/data" />

    <property name="app.zip.file"
              location="${dist.home}/${propval.app.zip.name}.zip" />
  </target>

  <!-- ================================================================
       build target
       ================================================================ -->

  <target name="build" depends="init">
    <filterset id="property.filters" >
      <filter token="BW-APP-NAME"
              value="${org.bedework.deploy.name}"/>

      <filter token="HIBERNATE-DIALECT"
              value="${org.bedework.global.hibernate.dialect}" />

      <filter token="DIRECTORY-BROWSING-DISALLOWED"
              value="${org.bedework.global.directory.browsing.disallowed}" />

      <filter token="APP-DESCRIPTION"
              value="${propval.app.description}" />

      <filter token="CALDAVTEST-CLASS"
              value="org.bedework.caldav.test.TestCalDav"/>

      <filter token="DUMP-CLASS"
              value="org.bedework.dumprestore.dump.Dump"/>
      <filter token="RESTORE-CLASS"
              value="org.bedework.dumprestore.restore.Restore"/>

      <filter token="APP-NAME"
              value="${propval.app.name}"/>
      <filter token="APP-VERSION"
              value="${propval.app.version}"/>
    </filterset>

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

    <!-- Library stuff -->

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

    <copy todir="${app.dest.lib}">
      <fileset dir="${hibernate.jars.dir}">
        <include name="*.jar"/>
      </fileset>
    </copy>

    <copy todir="${app.dest.lib}" file="${commons-collections.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-logging.jar}"/>

    <!-- core files -->

    <copy todir="${app.dest.lib}" overwrite="yes">
      <fileset dir="${bin.home}">
        <!-- jars from sub-projects needed by all -->
        <include name="rpiaccess*.jar"/>
        <include name="rpiutil*.jar"/>
        <include name="bw-davdefs*.jar"/>
        <include name="bw-davio*.jar"/>

        <!-- Calendar api jars -->
        <include name="bw-calcore*.jar"/>
        <include name="bw-calcorei*.jar"/>
        <include name="bw-calenv*.jar"/>
        <include name="bw-calfacade*.jar"/>
        <include name="bw-calsvc*.jar"/>
        <include name="bw-calsvci*.jar"/>
        <include name="bw-icalendar*.jar"/>
        <include name="bw-locale*.jar"/>
        <include name="bw-logging*.jar"/>
      </fileset>
    </copy>

     <!-- any extra bin files-->
    <copy todir="${app.dest.lib}" >
      <fileset refid="app.bin.files" />
    </copy>

    <!-- Some more standard libs -->
    <copy todir="${app.dest.lib}" file="${log4j.jar}"/>
    <copy todir="${app.dest.lib}" file="${ical4j.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-digester.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-httpclient.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-ssl.jar}"/>
    <copy todir="${app.dest.lib}" file="${commons-codec.jar}"/>

    <!-- Extra libraries specified in calling build file -->
    <copy todir="${app.dest.lib}" flatten="yes" >
      <fileset refid="org.bedework.run.jars" />
      <fileset refid="org.bedework.run.lib.jars" />

      <!-- local jdbc drivers -->
      <fileset dir="${org.bedework.jdbc.lib}">
        <include name="*.jar"/>
      </fileset>
    </copy>

    <!-- Include the quickstart jdbc driver -->
    <copy todir="${app.dest.lib}" file="${hsqldb.jdbcdriver.jar}"/>

    <copy todir="${app.dest.classes}">
      <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/properties" />
      <filterset refid="property.filters" />
    </copy>

    <copy todir="${app.dest.classes}">
      <fileset dir="${org.bedework.project.calendarapi}/calCore/resources/hbms" />
      <filterset refid="property.filters" />
    </copy>

    <copy todir="${app.dest.classes}" overwrite="yes" >
{'fraction_non_alphanumeric': 0.2286328782494857, 'fraction_numerical': 0.0007480830372171312, 'mean_word_length': 2.662671232876712, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 2, '>': 183, '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': '2833522', 'n_tokens_mistral': 3255, 'n_tokens_neox': 3103, 'n_words': 569}