<commit_before><project name="XQTS" basedir="." default="store">
    <!-- $Id$ -->

    <!-- import default properties from file -->
    <xmlproperty file="config.xml"/>

    <property name="server.dir" value="../.."/>

    <path id="classpath.core">
        <fileset dir="${server.dir}/lib/core">
            <include name="*.jar"/>
        </fileset>
        <pathelement path="${server.dir}/exist.jar"/>
        <pathelement path="${server.dir}/exist-optional.jar"/>
    </path>
    
    <typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
        <classpath refid="classpath.core"/>
    </typedef>

    <available file="${config.basedir}" property="xqts.present"/>
    <available file="${server.dir}/src/org/exist/numbering/NodeId.java" property="exist.dln"/>

    <target name="store" xmlns:xmldb="http://exist-db.org/ant" if="xqts.present"  depends="check-files">
        <echo message="XQuery Test Suite (XQTS) Setup"/>
        <echo message="---------------------------------"/>
        <echo message="Loading XQTS sources from directory: ${config.basedir}"/>
        
    	<!-- workaround ENTITY problem -->
    	<copy todir="${server.dir}">
    	  <fileset dir="${config.basedir}"
    	           includes="**/cat/*"
    	  />
    	</copy>
    	
    	<xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/system/config/db"
    		user="admin" password=""
    		createcollection="true">
            <fileset dir=".">
                <include name="xqts.xconf"/>
            </fileset>
        </xmldb:store>
    	
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS" createcollection="true">
            <fileset dir=".">
                <include name="config.xml"/>
                <include name="stylesheets/*.xsl"/>
            </fileset>
        </xmldb:store>

        <!-- xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/ReportingResults" createcollection="true">
            <fileset dir=".">
                <include name="collectresults.xql"/>
            </fileset>
        </xmldb:store-->
        
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/ReportingResults" createcollection="true">
            <fileset dir="${config.basedir}/ReportingResults">
                <include name="XQTSResult.xsd"/>
                <include name="XQTSResults.xsl"/>
                <include name="Results.xml"/>
            </fileset>
        </xmldb:store>
        
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS" createcollection="true">
            <fileset dir="${config.basedir}">
                <include name="XQTSCatalog.xml"/>
            </fileset>
        </xmldb:store>

        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/TestSources" createcollection="true">
            <fileset dir="${config.basedir}/TestSources">
                <include name="*"/>
                <!-- This list should be not very long -->
                <exclude name="badxml.xml"/> 
                <exclude name="BCisInvalid.xml"/> 
                <exclude name="InvalidUmlaut.xml"/> 
                <exclude name="InvalidXMLId.xml"/> 
                
            </fileset>
        </xmldb:store>
             
        <!--xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/TestSources" createcollection="true" type="xml">
            <fileset dir="${config.basedir}/TestSources">
                <include name="orders"/>
            </fileset-->
        </xmldb:store>

    </target>
    
    <target name="check-files" unless="xqts.present">
        <echo message="The XQTS sources could not be found in directory {$config.basedir}. Please edit"/>
        <echo message="webapp/xqts/config.xml and check the path specified via the"/>
        <echo message="&lt;basedir&gt; element."/>
    </target>
</project>
<commit_msg>[ignore] test before commit :-)<commit_after><project name="XQTS" basedir="." default="store">
    <!-- $Id$ -->

    <!-- import default properties from file -->
    <xmlproperty file="config.xml"/>

    <property name="server.dir" value="../.."/>

    <path id="classpath.core">
        <fileset dir="${server.dir}/lib/core">
            <include name="*.jar"/>
        </fileset>
        <pathelement path="${server.dir}/exist.jar"/>
        <pathelement path="${server.dir}/exist-optional.jar"/>
    </path>
    
    <typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
        <classpath refid="classpath.core"/>
    </typedef>

    <available file="${config.basedir}" property="xqts.present"/>
    <available file="${server.dir}/src/org/exist/numbering/NodeId.java" property="exist.dln"/>

    <target name="store" xmlns:xmldb="http://exist-db.org/ant" if="xqts.present"  depends="check-files">
        <echo message="XQuery Test Suite (XQTS) Setup"/>
        <echo message="---------------------------------"/>
        <echo message="Loading XQTS sources from directory: ${config.basedir}"/>
        
    	<!-- workaround ENTITY problem -->
    	<copy todir="${server.dir}">
    	  <fileset dir="${config.basedir}"
    	           includes="**/cat/*"
    	  />
    	</copy>
    	
    	<xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/system/config/db"
    		user="admin" password=""
    		createcollection="true">
            <fileset dir=".">
                <include name="xqts.xconf"/>
            </fileset>
        </xmldb:store>
    	
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS" createcollection="true">
            <fileset dir=".">
                <include name="config.xml"/>
                <include name="stylesheets/*.xsl"/>
            </fileset>
        </xmldb:store>

        <!-- xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/ReportingResults" createcollection="true">
            <fileset dir=".">
                <include name="collectresults.xql"/>
            </fileset>
        </xmldb:store-->
        
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/ReportingResults" createcollection="true">
            <fileset dir="${config.basedir}/ReportingResults">
                <include name="XQTSResult.xsd"/>
                <include name="XQTSResults.xsl"/>
                <include name="Results.xml"/>
            </fileset>
        </xmldb:store>
        
        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS" createcollection="true">
            <fileset dir="${config.basedir}">
                <include name="XQTSCatalog.xml"/>
            </fileset>
        </xmldb:store>

        <xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/TestSources" createcollection="true">
            <fileset dir="${config.basedir}/TestSources">
                <include name="*"/>
                <!-- This list should be not very long -->
                <exclude name="badxml.xml"/> 
                <exclude name="BCisInvalid.xml"/> 
                <exclude name="InvalidUmlaut.xml"/> 
                <exclude name="InvalidXMLId.xml"/> 
                
            </fileset>
        </xmldb:store>
             
        <!--xmldb:store uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/XQTS/TestSources" createcollection="true" type="xml">
            <fileset dir="${config.basedir}/TestSources">
                <include name="orders"/>
            </fileset>
        </xmldb:store-->

    </target>
    
    <target name="check-files" unless="xqts.present">
        <echo message="The XQTS sources could not be found in directory {$config.basedir}. Please edit"/>
        <echo message="webapp/xqts/config.xml and check the path specified via the"/>
        <echo message="&lt;basedir&gt; element."/>
    </target>
</project>

{'fraction_non_alphanumeric': 0.18040973111395647, 'fraction_numerical': 0.007170294494238156, 'mean_word_length': 2.0996031746031747, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 86}, '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': '3356080', 'n_tokens_mistral': 2482, 'n_tokens_neox': 2359, 'n_words': 376}