<commit_before><?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Id$ -->
<project basedir="../.." default="dist" name="dist">
	
  <description>Create eXist distribution</description>
	
	<!-- import common targets -->
	<import file="../../build.xml"/>
    
    <!-- ================================================================== -->
    <!-- Prepare webapp                                                     -->
    <!-- ================================================================== -->
    <target name="webapps">
	
        <mkdir dir="dist"/>
        
        <!-- When there are no java docs, create empty file -->
        <mkdir dir="webapp/api"/>
        <touch file="webapp/api/index.html"/>

        <mkdir dir="webapp/WEB-INF/data"/>
        <mkdir dir="webapp/WEB-INF/loggerdir"/>
        <mkdir dir="webapp/WEB-INF/logs"/>

        <!-- create war specific configuration files -->
        <xslt in="conf.xml"  out="webapp/WEB-INF/conf.xml"  style="${build.scripts}/dist-war-conf.xsl"/>
        <xslt in="log4j.xml" out="webapp/WEB-INF/log4j.xml" style="${build.scripts}/dist-war-log4j.xsl"/>
        
    </target>

    <!-- ================================================================== -->
    <!-- Create .war file                                                   -->
    <!-- ================================================================== -->
    <target name="dist-war" depends="webapps,svn-prepare" description="Create war file">
        <war destfile="${dist}/exist-${project.version}-rev${svn.revision}.war" webxml="webapp/WEB-INF/web.xml">
                
            <!-- Add files to WEB-INF/lib -->
            <lib dir=".">
                <include name="start.jar"/>
                <include name="exist.jar"/>
                <include name="exist-optional.jar"/>
                <include name="exist-modules.jar"/>
            </lib>
            <lib dir="${lib.core}">
                <include name="*.jar"/>
            </lib>
			<lib dir="${lib.extensions}">
				<include name="*.jar"/>
			</lib>
            <lib dir="${lib.optional}">
                <include name="*.jar"/>
                <exclude name="servlet-api-*.jar"/>
                <exclude name="jsp-api-*.jar"/>
            </lib>
            <lib dir="${lib.user}">
                <include name="*.jar"/>
            </lib>
            <!-- The following jars should not be here, but in 'endorsed' -->
            <lib dir="${lib.endorsed}">
                <include name="*.jar"/>
            </lib>
           	<!-- Include lucene jar, needed for documentation search -->
			<lib dir="extensions/indexes/lucene/lib">
				<include name="*.jar"/>
			</lib>
            <!-- Include spatial jars, when available -->
            <lib dir="extensions/indexes/spatial/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include xqdoc jar, needed for xquery function documentation -->
            <lib dir="extensions/xqdoc/lib">
                <include name="*.jar"/>
            </lib>
           
            <!-- Include webdav milton jars  -->
            <lib dir="extensions/webdav/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include betterform jars  -->
            <lib dir="extensions/betterform/main/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include the AspectJ runtime jar -->
            <lib dir="${tools.aspectj}/lib">
                <include name="aspectjrt-*.jar"/>
            </lib>

            <!-- Include expath jars  -->
            <lib dir="extensions/expath/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include exquery jars  -->
            <lib dir="extensions/exquery/lib">
                <include name="*.jar"/>
            </lib>
            <lib dir="extensions/exquery/restxq/lib">
                <include name="*.jar"/>
            </lib>

            <!-- Add configuration files to WEB-INF -->
            <webinf dir=".">
                <include name="client.properties"/>
                <include name="backup.properties"/>
				<include name="controller-config.xml"/>
                <include name="server.xml"/>
                <include name="mime-types.xml"/>
                <include name="descriptor.xml"/>
                <include name="log4j.dtd"/>
                <include name="atom-services.xml"/>
            </webinf>
        	
        	<!-- Add autodeploy directory to war WEB-INF -->
        	<webinf dir="." includes="autodeploy/*"/>
            
            <!-- Add files context root ('/') -->
            <fileset dir="webapp">
                <exclude name="**/*~"/>
                <exclude name="api/**"/>
                <exclude name="WEB-INF/web.xml"/>
                <exclude name="WEB-INF/data/*.dbx"/>
                <exclude name="WEB-INF/data/*.lck"/>
                <exclude name="WEB-INF/data/lucene/**"/>
                <exclude name="WEB-INF/data/fs/**"/>
                <exclude name="WEB-INF/data/fs.journal/**"/>
                <exclude name="WEB-INF/data/export/**"/>
                <exclude name="WEB-INF/data/sanity/**"/>
                <exclude name="WEB-INF/expathrepo/**"/>
                <exclude name="**/*.log*"/>
            </fileset>
            <!-- Betterform -->
			<zipfileset dir="extensions/betterform/main/xrx/"  prefix="betterform/samples/xrx">
			    <include name="**/*"/>
			</zipfileset>
            <zipfileset dir="extensions/betterform/main/xforms/"  prefix="betterform/samples/xforms">
                <include name="**/*"/>
            </zipfileset>
            <zipfileset dir="samples" prefix="samples">
                <include name="**"/>
                <exclude name="**/*~"/>
                <exclude name="xupdate/**"/>
                <exclude name="test.xml"/><commit_msg>dont try to include xforms dir deleted in rev17642<commit_after><?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Id$ -->
<project basedir="../.." default="dist" name="dist">
	
  <description>Create eXist distribution</description>
	
	<!-- import common targets -->
	<import file="../../build.xml"/>
    
    <!-- ================================================================== -->
    <!-- Prepare webapp                                                     -->
    <!-- ================================================================== -->
    <target name="webapps">
	
        <mkdir dir="dist"/>
        
        <!-- When there are no java docs, create empty file -->
        <mkdir dir="webapp/api"/>
        <touch file="webapp/api/index.html"/>

        <mkdir dir="webapp/WEB-INF/data"/>
        <mkdir dir="webapp/WEB-INF/loggerdir"/>
        <mkdir dir="webapp/WEB-INF/logs"/>

        <!-- create war specific configuration files -->
        <xslt in="conf.xml"  out="webapp/WEB-INF/conf.xml"  style="${build.scripts}/dist-war-conf.xsl"/>
        <xslt in="log4j.xml" out="webapp/WEB-INF/log4j.xml" style="${build.scripts}/dist-war-log4j.xsl"/>
        
    </target>

    <!-- ================================================================== -->
    <!-- Create .war file                                                   -->
    <!-- ================================================================== -->
    <target name="dist-war" depends="webapps,svn-prepare" description="Create war file">
        <war destfile="${dist}/exist-${project.version}-rev${svn.revision}.war" webxml="webapp/WEB-INF/web.xml">
                
            <!-- Add files to WEB-INF/lib -->
            <lib dir=".">
                <include name="start.jar"/>
                <include name="exist.jar"/>
                <include name="exist-optional.jar"/>
                <include name="exist-modules.jar"/>
            </lib>
            <lib dir="${lib.core}">
                <include name="*.jar"/>
            </lib>
			<lib dir="${lib.extensions}">
				<include name="*.jar"/>
			</lib>
            <lib dir="${lib.optional}">
                <include name="*.jar"/>
                <exclude name="servlet-api-*.jar"/>
                <exclude name="jsp-api-*.jar"/>
            </lib>
            <lib dir="${lib.user}">
                <include name="*.jar"/>
            </lib>
            <!-- The following jars should not be here, but in 'endorsed' -->
            <lib dir="${lib.endorsed}">
                <include name="*.jar"/>
            </lib>
           	<!-- Include lucene jar, needed for documentation search -->
			<lib dir="extensions/indexes/lucene/lib">
				<include name="*.jar"/>
			</lib>
            <!-- Include spatial jars, when available -->
            <lib dir="extensions/indexes/spatial/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include xqdoc jar, needed for xquery function documentation -->
            <lib dir="extensions/xqdoc/lib">
                <include name="*.jar"/>
            </lib>
           
            <!-- Include webdav milton jars  -->
            <lib dir="extensions/webdav/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include betterform jars  -->
            <lib dir="extensions/betterform/main/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include the AspectJ runtime jar -->
            <lib dir="${tools.aspectj}/lib">
                <include name="aspectjrt-*.jar"/>
            </lib>

            <!-- Include expath jars  -->
            <lib dir="extensions/expath/lib">
                <include name="*.jar"/>
            </lib>
            <!-- Include exquery jars  -->
            <lib dir="extensions/exquery/lib">
                <include name="*.jar"/>
            </lib>
            <lib dir="extensions/exquery/restxq/lib">
                <include name="*.jar"/>
            </lib>

            <!-- Add configuration files to WEB-INF -->
            <webinf dir=".">
                <include name="client.properties"/>
                <include name="backup.properties"/>
				<include name="controller-config.xml"/>
                <include name="server.xml"/>
                <include name="mime-types.xml"/>
                <include name="descriptor.xml"/>
                <include name="log4j.dtd"/>
                <include name="atom-services.xml"/>
            </webinf>
        	
        	<!-- Add autodeploy directory to war WEB-INF -->
        	<webinf dir="." includes="autodeploy/*"/>
            
            <!-- Add files context root ('/') -->
            <fileset dir="webapp">
                <exclude name="**/*~"/>
                <exclude name="api/**"/>
                <exclude name="WEB-INF/web.xml"/>
                <exclude name="WEB-INF/data/*.dbx"/>
                <exclude name="WEB-INF/data/*.lck"/>
                <exclude name="WEB-INF/data/lucene/**"/>
                <exclude name="WEB-INF/data/fs/**"/>
                <exclude name="WEB-INF/data/fs.journal/**"/>
                <exclude name="WEB-INF/data/export/**"/>
                <exclude name="WEB-INF/data/sanity/**"/>
                <exclude name="WEB-INF/expathrepo/**"/>
                <exclude name="**/*.log*"/>
            </fileset>
            <!-- Betterform -->
			<zipfileset dir="extensions/betterform/main/xrx/"  prefix="betterform/samples/xrx">
			    <include name="**/*"/>
			</zipfileset>
            <zipfileset dir="samples" prefix="samples">
                <include name="**"/>
                <exclude name="**/*~"/>
                <exclude name="xupdate/**"/>
                <exclude name="test.xml"/>
{'fraction_non_alphanumeric': 0.2218863361547763, 'fraction_numerical': 0.002332008982553118, 'mean_word_length': 1.5298230281844003, 'pattern_counts': {'":': 0, '<': 254, '<?xml version=': 2, '>': 254, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 30}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '773500', 'n_tokens_mistral': 3300, 'n_tokens_neox': 2965, 'n_words': 585}