<commit_before><?xml version="1.0"?>
<!--
 *************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 *
 *  Build.xml
 *
 *  Created on 04/26/2005
 *  Build script for project org.eclipse.birt.doc
 *
 * 
 * The following are public targets callable by external users. 
 * 
 * "Clean" - Clean all objects created by this script. Individual project build script can not call this target; 
 * "Jar" - Generate zip for this project.
 *          There is no compile dependency on other projects.
 *         eclipse.home should be passed in when Individual project build script  call this target; 
 *          the property of "failonerror" should be set true(default) when compiling source code
 * "UnitTest" - Run unit tests. This task must be called after calling Jar task,
 *              so it needn't depend on Jar explicitly
 * "Export" - Export the project, for instance, zip files are copied to a designated folder.
 *            this task must be called after calling Jar task, so it needn't depend on Jar explicitly
 * "JavaDoc" - generate java documents
 *
 * Usage:
 *    ant [any one or more of the public targets] 
 *        -Declipse.home=<your eclipse home> 
 *
 * Default target is "Jar".
 *
 * 
 * This script may also additional targets. These targets are private to this build script only. 
 *
 *
 * Notes:
 *  1. classpath need to be set for junit.jar
 *  2. This file now requires Ant 1.6
 *
 * Change History:
 *
 *    1. 04/26/2005: initial version
 *
-->

<project name="BIRT Documentation Project" default="Jar" basedir=".">
    <description>BIRT Documentation Project.</description>
	<property file="build.properties"/>		
	
	<!-- set global properties for this build -->
    <!-- Public properties, used by public targets, top level build script will pass on the value 
	 	 at runtime. Properties will have there default value:
		     eclipse.home
		     utest.report.dir
		     javadoc.dir
		     plugin.version 
	-->
	
	<!-- ===== Default value for public properties ============= -->
	<property name="utest.report.dir" location="utestreports" />
	<property name="javadoc.dir" location="docs/api" />
	<property name="plugin.version" value="0.0.1" />
	<property name="export.dir" location="export" />

	<property name="eclipse.home" location="." />
	
	<property name="core.dir" value="../org.eclipse.birt.core" />
	<property name="module.name" value = "org.eclipse.birt.doc" />
	<property name="engine.dir" value="../org.eclipse.birt.report.engine" />
	<property name="engine.javadoc.dir" value="engine/api" />
	<property name="data.dir" value="../org.eclipse.birt.data.oda" />
	<property name="data.javadoc.dir" value="data/api" />
	<property name="model.dir" value="../org.eclipse.birt.report.model" />
	<property name="model.javadoc.dir" value="model/api" />
	<property name="chartengine.dir" value="../org.eclipse.birt.chart.engine" />
	<property name="chartengine.javadoc.dir" value="chart/api" />
	
	<!-- Generate zip for this project.
		 Input parameters:
		 	eclipse.home
	-->
	<target name="Jar" depends="Javadoc">
		<zip destfile="./doc.zip"
      basedir="."
			includes="birt/**,chart/**,data/**,model/**,engine/**"
		/>
	</target>

	<target name="ZipOnly">
		<zip destfile="./doc.zip"
      basedir="."
			includes="birt/**,chart/**,data/**,model/**,engine/**"
		/>
	</target>
	
	<!-- Export the project, for instance, zip files are copied to a designated folder
			 the dependency on Jar should implement in top level script by call sequence
			 Parameters:
			 		- ${export.dir} target directory to put the plugin binaries
			 		- ${plugin.version} the version of plugin exported
	-->
	<target name="Export">
	  	<copy todir="${export.dir}/${module.name}_${plugin.version}">
	        <fileset dir="." includes="plugin.xml,.project,toc.xml,doc.zip,about.html,notices.html"/>
	    </copy>
	</target>

	<!-- Run Unit test.
			 Parameters:
			 		- ${utest.report.dir} target directory to put the unit test report
	-->
	<target name="UnitTest" description="run all the unit tests">
	</target>

	<!-- Clean all objects created by this script -->
	<target name="Clean" depends="init" description="clean up">
		<antcall target="cleanBuild"/>
		<antcall target="cleanUnitTest"/>
		<antcall target="cleanZip"/>
	</target>

	<!-- Generate the JavaDoc.
	 -->
	<target name="Javadoc">
    <antcall target = "engineJavadoc"/>
    <antcall target = "modelJavadoc"/>
    <antcall target = "dataJavadoc"/>
    <antcall target = "chartJavadoc"/>
	</target>
	
	<target name="init" description="initialization">
	</target>
	
	<target name="cleanBuild" description= "clean files generated by build">
		<delete dir="${engine.javadoc.dir}"/>
		<delete dir="${model.javadoc.dir}"/>
		<delete dir="${data.javadoc.dir}"/>
		<delete dir="${chartengine.javadoc.dir}"/>
		<delete file="doc.zip" />
	</target>
	<target name="cleanUnitTest" description= "clean files generated by unit tests">
	</target>
	<target name="cleanZip" description = "clean zip files">
		<delete file="doc.zip" />
	</target>
	
	<target name="engineJavadoc">
		<delete dir="${engine.javadoc.dir}"/>
		<ant dir="${engine.dir}" antfile="BuildEngine.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${engine.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="modelJavadoc">
		<delete dir="${model.javadoc.dir}"/>
		<ant dir="${model.dir}" antfile="BuildModel.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${model.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="dataJavadoc">
		<delete dir="${data.javadoc.dir}"/>
		<ant dir="${data.dir}" antfile="BuildOda.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${data.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="chartJavadoc">
		<delete dir="${chartengine.javadoc.dir}"/>
		<ant dir="${chartengine.dir}" antfile="BuildChartEngine.xml" target="javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="destination.dir" value="../${module.name}/${chartengine.javadoc.dir}" />
		</ant>
  </target>
	
</project>
<commit_msg>Update BuildDoc.xml to match changes in chart engine's BuildChartEngine.xml<commit_after><?xml version="1.0"?>
<!--
 *************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 *
 *  Build.xml
 *
 *  Created on 04/26/2005
 *  Build script for project org.eclipse.birt.doc
 *
 * 
 * The following are public targets callable by external users. 
 * 
 * "Clean" - Clean all objects created by this script. Individual project build script can not call this target; 
 * "Jar" - Generate zip for this project.
 *          There is no compile dependency on other projects.
 *         eclipse.home should be passed in when Individual project build script  call this target; 
 *          the property of "failonerror" should be set true(default) when compiling source code
 * "UnitTest" - Run unit tests. This task must be called after calling Jar task,
 *              so it needn't depend on Jar explicitly
 * "Export" - Export the project, for instance, zip files are copied to a designated folder.
 *            this task must be called after calling Jar task, so it needn't depend on Jar explicitly
 * "JavaDoc" - generate java documents
 *
 * Usage:
 *    ant [any one or more of the public targets] 
 *        -Declipse.home=<your eclipse home> 
 *
 * Default target is "Jar".
 *
 * 
 * This script may also additional targets. These targets are private to this build script only. 
 *
 *
 * Notes:
 *  1. classpath need to be set for junit.jar
 *  2. This file now requires Ant 1.6
 *
 * Change History:
 *
 *    1. 04/26/2005: initial version
 *
-->

<project name="BIRT Documentation Project" default="Jar" basedir=".">
    <description>BIRT Documentation Project.</description>
	<property file="build.properties"/>		
	
	<!-- set global properties for this build -->
    <!-- Public properties, used by public targets, top level build script will pass on the value 
	 	 at runtime. Properties will have there default value:
		     eclipse.home
		     utest.report.dir
		     javadoc.dir
		     plugin.version 
	-->
	
	<!-- ===== Default value for public properties ============= -->
	<property name="utest.report.dir" location="utestreports" />
	<property name="javadoc.dir" location="docs/api" />
	<property name="plugin.version" value="0.0.1" />
	<property name="export.dir" location="export" />

	<property name="eclipse.home" location="." />
	
	<property name="core.dir" value="../org.eclipse.birt.core" />
	<property name="module.name" value = "org.eclipse.birt.doc" />
	<property name="engine.dir" value="../org.eclipse.birt.report.engine" />
	<property name="engine.javadoc.dir" value="engine/api" />
	<property name="data.dir" value="../org.eclipse.birt.data.oda" />
	<property name="data.javadoc.dir" value="data/api" />
	<property name="model.dir" value="../org.eclipse.birt.report.model" />
	<property name="model.javadoc.dir" value="model/api" />
	<property name="chartengine.dir" value="../org.eclipse.birt.chart.engine" />
	<property name="chartengine.javadoc.dir" value="chart/api" />
	
	<!-- Generate zip for this project.
		 Input parameters:
		 	eclipse.home
	-->
	<target name="Jar" depends="Javadoc">
		<zip destfile="./doc.zip"
      basedir="."
			includes="birt/**,chart/**,data/**,model/**,engine/**"
		/>
	</target>

	<target name="ZipOnly">
		<zip destfile="./doc.zip"
      basedir="."
			includes="birt/**,chart/**,data/**,model/**,engine/**"
		/>
	</target>
	
	<!-- Export the project, for instance, zip files are copied to a designated folder
			 the dependency on Jar should implement in top level script by call sequence
			 Parameters:
			 		- ${export.dir} target directory to put the plugin binaries
			 		- ${plugin.version} the version of plugin exported
	-->
	<target name="Export">
	  	<copy todir="${export.dir}/${module.name}_${plugin.version}">
	        <fileset dir="." includes="plugin.xml,.project,toc.xml,doc.zip,about.html,notices.html"/>
	    </copy>
	</target>

	<!-- Run Unit test.
			 Parameters:
			 		- ${utest.report.dir} target directory to put the unit test report
	-->
	<target name="UnitTest" description="run all the unit tests">
	</target>

	<!-- Clean all objects created by this script -->
	<target name="Clean" depends="init" description="clean up">
		<antcall target="cleanBuild"/>
		<antcall target="cleanUnitTest"/>
		<antcall target="cleanZip"/>
	</target>

	<!-- Generate the JavaDoc.
	 -->
	<target name="Javadoc">
    <antcall target = "engineJavadoc"/>
    <antcall target = "modelJavadoc"/>
    <antcall target = "dataJavadoc"/>
    <antcall target = "chartJavadoc"/>
	</target>
	
	<target name="init" description="initialization">
	</target>
	
	<target name="cleanBuild" description= "clean files generated by build">
		<delete dir="${engine.javadoc.dir}"/>
		<delete dir="${model.javadoc.dir}"/>
		<delete dir="${data.javadoc.dir}"/>
		<delete dir="${chartengine.javadoc.dir}"/>
		<delete file="doc.zip" />
	</target>
	<target name="cleanUnitTest" description= "clean files generated by unit tests">
	</target>
	<target name="cleanZip" description = "clean zip files">
		<delete file="doc.zip" />
	</target>
	
	<target name="engineJavadoc">
		<delete dir="${engine.javadoc.dir}"/>
		<ant dir="${engine.dir}" antfile="BuildEngine.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${engine.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="modelJavadoc">
		<delete dir="${model.javadoc.dir}"/>
		<ant dir="${model.dir}" antfile="BuildModel.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${model.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="dataJavadoc">
		<delete dir="${data.javadoc.dir}"/>
		<ant dir="${data.dir}" antfile="BuildOda.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${data.javadoc.dir}" />
		</ant>
  </target>
	
	<target name="chartJavadoc">
		<delete dir="${chartengine.javadoc.dir}"/>
		<ant dir="${chartengine.dir}" antfile="BuildChartEngine.xml" target="Javadoc" inheritall="false" inheritrefs="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
      <property name="javadoc.dir" value="../${module.name}/${chartengine.javadoc.dir}" />
		</ant>
  </target>
	
</project>

{'fraction_non_alphanumeric': 0.1829127613554434, 'fraction_numerical': 0.004902667627974045, 'mean_word_length': 3.77487091222031, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 2, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 18}, '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': '6598180', 'n_tokens_mistral': 4477, 'n_tokens_neox': 4060, 'n_words': 1142}