<commit_before><!--
Build file for the GridSphere Portal source code

 Notes:
This is a build file for use with the Jakarta Ant build tool.

 Prerequisites:

jakarta-ant from http://jakarta.apache.org

 Build Instructions:
Invoke "ant help"

 Copyright:
   2002,2003,2004,2005

 - $Id$

-->

<project name="GridSphere" default="help">


    <!-- get environment vars -->
    <property environment="env"/>

    <property file="build.properties"/>


    <property name="optimize" value="false"/>
    <property name="debug" value="on"/>
    <property name="deprecation" value="false"/>

    <!-- Version properties -->
    <property name="version" value="2.0.3"/>
    <property name="release" value="b1"/>
    <property name="version.release" value="${version} ${release}"/>
    <property name="gridsphere.project" value="gridsphere"/>
    <property name="gridsphere.name" value="GridSphere ${version.release}"/>
    <property name="gridsphere.api" value="GridSphere Portal Framework API ${version.release}"/>

    <!-- GridSphere build and dist directories -->

    <!-- GridSphere webapps files -->
    <property name="gswebapp.dir" value="webapps/gridsphere"/>

    <!-- GridSphere DocBook documentation -->
    <property name="docbook.dir" value="docs/docbook"/>

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

    <!-- GridSphere build targets -->
    <property name="build.lib" value="${gridsphere.build}/lib"/>
    <property name="build.classes" value="${gridsphere.build}/classes"/>
    <property name="build.webapps" value="${gridsphere.build}/webapps"/>
    <property name="build.docs" value="${gridsphere.build}/docs"/>
    <property name="build.javadoc" value="${build.docs}/javadocs"/>
    <property name="build.tests" value="${gridsphere.build}/tests"/>


    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="lib/ant-contrib-0.3.jar"/>
        </classpath>
    </taskdef>

    <taskdef resource="cactus.tasks">
        <classpath>
            <pathelement location="lib/cactus-integration-ant-20030401.jar"/>
        </classpath>
    </taskdef>


    <!-- ============================= Include the other build files =============================== -->

    <import file="config/build/build-compile.xml"/>
    <import file="config/build/build-database.xml"/>
    <import file="config/build/build-docs.xml"/>
    <import file="config/build/build-deploy.xml"/>
    <import file="config/build/build-unittests.xml"/>
    <import file="config/build/build-server-tomcat.xml"/>


    <!-- ============================= Targets ===================================================== -->

    <target name="help" description="Displays this help">

    </target>

    <target name="setenv" description="Check for libraries and print out config information">
        <mkdir dir="${gridsphere.build}"/>
        <mkdir dir="${projects.dir}"/>
        <mkdir dir="${build.classes}"/>
        <mkdir dir="${build.lib}"/>
        <mkdir dir="${build.webapps}"/>
        <mkdir dir="${build.docs}"/>

        <!--
           if tomcat check first for env.CATALINA_HOME

           on jetty set it to APPSERVER_HOME
        -->
        <if>
            <equals arg1="${gridsphere.appserver}" arg2="tomcat"/>
            <then>
                <echo message="Installing for Tomcat"/>
                <property name="appserver.home" value="${env.CATALINA_HOME}"/>
                <property name="servlet-api.file" value="${appserver.home}/common/lib/servlet-api.jar"/>
            </then>
        </if>
        <if>
            <equals arg1="${gridsphere.appserver}" arg2="jetty"/>
            <then>
                <echo message="Installing for Jetty"/>
                <property name="appserver.home" value="${env.APPSERVER_HOME}"/>
                <property name="servlet-api.file" value="${appserver.home}/lib/javax.servlet.jar"/>
            </then>
        </if>

        <path id="classpath">
            <pathelement location="${build.classes}"/>
            <fileset dir="lib">
                <exclude name="*.LICENSE"/>
                <include name="*.jar"/>
            </fileset>
            <fileset file="${servlet-api.file}"/>
        </path>

        <echo message="${servlet-api.file}"/>
        <echo message="GridSphere Webserver is ${gridsphere.appserver}"/>
        <echo message="GridSphere will be deployed to ${appserver.home}"/>
    </target>



    <!-- =================================================================== -->
    <!-- Cleans everything                                                   -->
    <!-- =================================================================== --><commit_msg>new build file for testing<commit_after><!--
Build file for the GridSphere Portal source code

 Notes:
This is a build file for use with the Jakarta Ant build tool.

 Prerequisites:

jakarta-ant from http://jakarta.apache.org

 Build Instructions:
Invoke "ant help"

 Copyright:
   2002,2003,2004,2005

 - $Id$

-->

<project name="GridSphere" default="help">


    <!-- get environment vars -->
    <property environment="env"/>

    <property file="build.properties"/>


    <property name="optimize" value="false"/>
    <property name="debug" value="on"/>
    <property name="deprecation" value="false"/>

    <!-- Version properties -->
    <property name="version" value="2.0.3"/>
    <property name="release" value="b1"/>
    <property name="version.release" value="${version} ${release}"/>
    <property name="gridsphere.project" value="gridsphere"/>
    <property name="gridsphere.name" value="GridSphere ${version.release}"/>
    <property name="gridsphere.api" value="GridSphere Portal Framework API ${version.release}"/>

    <!-- GridSphere build and dist directories -->

    <!-- GridSphere webapps files -->
    <property name="gswebapp.dir" value="webapps/gridsphere"/>

    <!-- GridSphere DocBook documentation -->
    <property name="docbook.dir" value="docs/docbook"/>

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

    <!-- GridSphere build targets -->
    <property name="build.lib" value="${gridsphere.build}/lib"/>
    <property name="build.classes" value="${gridsphere.build}/classes"/>
    <property name="build.webapps" value="${gridsphere.build}/webapps"/>
    <property name="build.docs" value="${gridsphere.build}/docs"/>
    <property name="build.javadoc" value="${build.docs}/javadocs"/>
    <property name="build.tests" value="${gridsphere.build}/tests"/>


    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="lib/ant-contrib-0.3.jar"/>
        </classpath>
    </taskdef>

    <taskdef resource="cactus.tasks">
        <classpath>
            <pathelement location="lib/cactus-integration-ant-20030401.jar"/>
        </classpath>
    </taskdef>


    <!-- ============================= Include the other build files =============================== -->

    <import file="config/build/build-compile.xml"/>
    <import file="config/build/build-database.xml"/>
    <import file="config/build/build-docs.xml"/>
    <import file="config/build/build-deploy.xml"/>
    <import file="config/build/build-unittests.xml"/>
    <import file="config/build/build-server-tomcat.xml"/>


    <!-- ============================= Targets ===================================================== -->

    <target name="help" description="Displays this help">

    </target>

    <target name="setenv" description="Check for libraries and print out config information">
        <mkdir dir="${gridsphere.build}"/>
        <mkdir dir="${projects.dir}"/>
        <mkdir dir="${build.classes}"/>
        <mkdir dir="${build.lib}"/>
        <mkdir dir="${build.webapps}"/>
        <mkdir dir="${build.docs}"/>

        <!--
           if tomcat check first for env.CATALINA_HOME

           on jetty set it to APPSERVER_HOME
        -->
        <if>
            <equals arg1="${gridsphere.appserver}" arg2="tomcat"/>
            <then>
                <echo message="Installing for Tomcat"/>
                <property name="appserver.home" value="${env.CATALINA_HOME}"/>
                <property name="servlet-api.file" value="${appserver.home}/common/lib/servlet-api.jar"/>
            </then>
        </if>
        <if>
            <equals arg1="${gridsphere.appserver}" arg2="jetty"/>
            <then>
                <echo message="Installing for Jetty"/>
                <property name="appserver.home" value="${env.APPSERVER_HOME}"/>
                <property name="servlet-api.file" value="${appserver.home}/lib/javax.servlet.jar"/>
            </then>
        </if>

        <path id="classpath">
            <pathelement location="${build.classes}"/>
            <fileset dir="lib">
                <exclude name="*.LICENSE"/>
                <include name="*.jar"/>
            </fileset>
            <fileset file="${servlet-api.file}"/>
        </path>

        <echo message="GridSphere Webserver is ${gridsphere.appserver}"/>
        <echo message="GridSphere will be deployed to ${appserver.home}"/>
    </target>



    <!-- =================================================================== -->
    <!-- Cleans everything                                                   -->
    <!-- =================================================================== -->
{'fraction_non_alphanumeric': 0.22109316504438978, 'fraction_numerical': 0.007273505187720612, 'mean_word_length': 2.737010391686651, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 176, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1008917', 'n_tokens_mistral': 2666, 'n_tokens_neox': 2459, 'n_words': 518}