<commit_before>
<!--


              A p a c h e   B a t i k   B u i l d   S y s t e m



Build Tools
..............................................................................

The Batik build system is based on Apache Ant, which is a Java building tool
used in Apache projects.
For more information refer to "http://jakarta.apache.org/ant/".

The distribution contains a precompiled version of Ant.

The only thing that you have to make sure, is the "JAVA_HOME" environment
property should be set to match the JVM you want to use. 


Building Instructions
..............................................................................

First, make sure your current working directory is where this file is located.
Then type:

  [unix]  ./build.sh compile
  [win32] .\build.bat compile

This action will compile the sources to the 'classes' directory.

You can now launch the SVG viewer by typing:

  [unix]  ./build.sh svgviewer
  [win32] .\build.bat svgviewer


Build Targets
..............................................................................

To display the available targets type:

  [unix]  ./build.sh  help
  [win32] .\build.bat help

 
 $Id$

-->

<project default="help" basedir=".">

  <!-- Initializations .................................................... -->
  <target name="init-args" unless="args">
    <property name="args" value="samples/tests/index.svg"/>
  </target>

  <target name="init" depends="init-args">
    <tstamp/>
    <property name="Project" value="Batik"/>
    <property name="project" value="batik"/>
    <property name="year"    value="2000"/>

    <property name="src"             value="sources"/>
    <property name="dest"            value="classes"/>
    <property name="docs"            value="docs"/>
    <property name="class-prefix"    value="org.apache.${project}"/>

    <property name="xdocs"           value="xdocs"/>
    <property name="skins"           value="xdocs/skins"/>
    <property name="stylebook-class" value="org.apache.stylebook.StyleBook"/>

    <property name="site"            value="../xml-site/targets/${project}"/>
    <property name="site-skin"       value="${skins}/xml.apache.org/"/>
    <property name="print-skin"      value="${skins}/printer/"/>

    <available property="rhino.present" classname="org.mozilla.javascript.Context">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jpython.present" classname="org.phyton.util.PythonInterpreter">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jacl.present" classname="tcl.lang.Interp">
      <classpath refid="libs-classpath"/>
    </available>

  </target>

  <path id="libs-classpath">
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
  </path>


  <!-- Help ............................................................... -->
  <target name       ="help"
          depends    ="init"
          description="Displays the usage">
    <echo message=""/>
    <echo message="${project} build file"/>
    <echo message=""/>
    <echo message=" Available targets are:"/>
    <echo message=""/>
    <echo message="   compile    --> compiles the source code"/>
    <echo message="   svgviewer  --> runs the SVG viewer"/>
    <echo message="   javadoc    --> generates the API documentation"/>
    <echo message="   site       --> generates the site documentation"/>
    <echo message="   sitedoc    --> generates the site documentation without"/>
    <echo message="                  the Javadoc"/>
    <echo message="   html       --> generates the site documentation in docs/"/>
    <echo message="   htmldoc    --> generates the site documentation in docs/"/>
    <echo message="                  without the Javadoc"/>
    <echo message="   printerdoc --> generates the printable documentation in"/>
    <echo message="                  docs/print"/>
    <echo message="   clean      --> cleans up the directory"/>
    <echo message=""/>
    <echo message=" See the comments in the build.xml file for more details."/>
    <echo message=""/>
    <echo message=""/>
  </target>


  <!-- Compilation ........................................................ -->
  <target name       ="compile"
          depends    ="init"
          description="Compiles the source files">
    <mkdir dir="${dest}"/>

    <javac srcdir="${src}" destdir="${dest}" deprecation="on">
      <classpath refid="libs-classpath"/>
      <exclude name="**/*.html"/>
      <exclude name="**/rhino*" unless="rhino.present"/>      
      <exclude name="**/jpython*" unless="jpython.present"/>
      <exclude name="**/jacl*" unless="jacl.present"/>
    </javac>

    <copy file="${src}/org/w3c/flute/util/encoding.properties"
          todir="${dest}/org/w3c/flute/util"/>
  </target>

  <target name="clean-compile"
          depends="init"
          description="Cleans the files generated by compile">
    <delete dir="${dest}"/>
  </target>

  <!-- Applications ....................................................... -->
  <target name="svgviewer"
          depends="compile"
          description="Runs the SVG viewer">
    <java fork="yes"
          classname="${class-prefix}.apps.svgviewer.Main">
      <classpath>
        <path refid="libs-classpath"/>
        <pathelement location="resources" />
        <pathelement location="${dest}" />
      </classpath>
      <arg value="${args}"/>
    </java><commit_msg>fixed classpath problems. PR: Obtained from: Submitted by: Reviewed by:<commit_after>
<!--


              A p a c h e   B a t i k   B u i l d   S y s t e m



Build Tools
..............................................................................

The Batik build system is based on Apache Ant, which is a Java building tool
used in Apache projects.
For more information refer to "http://jakarta.apache.org/ant/".

The distribution contains a precompiled version of Ant.

The only thing that you have to make sure, is the "JAVA_HOME" environment
property should be set to match the JVM you want to use. 


Building Instructions
..............................................................................

First, make sure your current working directory is where this file is located.
Then type:

  [unix]  ./build.sh compile
  [win32] .\build.bat compile

This action will compile the sources to the 'classes' directory.

You can now launch the SVG viewer by typing:

  [unix]  ./build.sh svgviewer
  [win32] .\build.bat svgviewer


Build Targets
..............................................................................

To display the available targets type:

  [unix]  ./build.sh  help
  [win32] .\build.bat help

 
 $Id$

-->

<project default="help" basedir=".">

  <!-- Initializations .................................................... -->
  <target name="init-args" unless="args">
    <property name="args" value="samples/tests/index.svg"/>
  </target>

  <target name="init" depends="init-args">
    <tstamp/>
    <property name="Project" value="Batik"/>
    <property name="project" value="batik"/>
    <property name="year"    value="2000"/>

    <property name="src"             value="sources"/>
    <property name="dest"            value="classes"/>
    <property name="docs"            value="docs"/>
    <property name="class-prefix"    value="org.apache.${project}"/>

    <property name="xdocs"           value="xdocs"/>
    <property name="skins"           value="xdocs/skins"/>
    <property name="stylebook-class" value="org.apache.stylebook.StyleBook"/>

    <property name="site"            value="../xml-site/targets/${project}"/>
    <property name="site-skin"       value="${skins}/xml.apache.org/"/>
    <property name="print-skin"      value="${skins}/printer/"/>

    <available property="rhino.present" classname="org.mozilla.javascript.Context">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jpython.present" classname="org.phyton.util.PythonInterpreter">
      <classpath refid="libs-classpath"/>
    </available>
    <available property="jacl.present" classname="tcl.lang.Interp">
      <classpath refid="libs-classpath"/>
    </available>

  </target>

  <path id="libs-classpath">
    <fileset dir="lib">
      <include name="*.jar"/>
    </fileset>
  </path>


  <!-- Help ............................................................... -->
  <target name       ="help"
          depends    ="init"
          description="Displays the usage">
    <echo message=""/>
    <echo message="${project} build file"/>
    <echo message=""/>
    <echo message=" Available targets are:"/>
    <echo message=""/>
    <echo message="   compile    --> compiles the source code"/>
    <echo message="   svgviewer  --> runs the SVG viewer"/>
    <echo message="   javadoc    --> generates the API documentation"/>
    <echo message="   site       --> generates the site documentation"/>
    <echo message="   sitedoc    --> generates the site documentation without"/>
    <echo message="                  the Javadoc"/>
    <echo message="   html       --> generates the site documentation in docs/"/>
    <echo message="   htmldoc    --> generates the site documentation in docs/"/>
    <echo message="                  without the Javadoc"/>
    <echo message="   printerdoc --> generates the printable documentation in"/>
    <echo message="                  docs/print"/>
    <echo message="   clean      --> cleans up the directory"/>
    <echo message=""/>
    <echo message=" See the comments in the build.xml file for more details."/>
    <echo message=""/>
    <echo message=""/>
  </target>


  <!-- Compilation ........................................................ -->
  <target name       ="compile"
          depends    ="init"
          description="Compiles the source files">
    <mkdir dir="${dest}"/>

    <javac srcdir="${src}" destdir="${dest}" deprecation="on">
      <classpath refid="libs-classpath"/>
      <exclude name="**/*.html"/>
      <exclude name="**/rhino*" unless="rhino.present"/>      
      <exclude name="**/jpython*" unless="jpython.present"/>
      <exclude name="**/jacl*" unless="jacl.present"/>
    </javac>

    <copy file="${src}/org/w3c/flute/util/encoding.properties"
          todir="${dest}/org/w3c/flute/util"/>
  </target>

  <target name="clean-compile"
          depends="init"
          description="Cleans the files generated by compile">
    <delete dir="${dest}"/>
  </target>

  <!-- Applications ....................................................... -->
  <target name="svgviewer"
          depends="compile"
          description="Runs the SVG viewer">
    <java fork="yes"
          classname="${class-prefix}.apps.svgviewer.Main">
      <classpath>
        <pathelement location="${dest}" />
        <path refid="libs-classpath"/>
        <pathelement location="resources" />
      </classpath>
      <arg value="${args}"/>
    </java>
{'fraction_non_alphanumeric': 0.22759823723834008, 'fraction_numerical': 0.0022034520749173708, 'mean_word_length': 1.9673113593026423, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 191, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4952355', 'n_tokens_mistral': 3005, 'n_tokens_neox': 2861, 'n_words': 846}