<commit_before><!-- This a Ant build file whose sole purpose is to test 
both a complete vanilla TSP build, and an XMLRPC TSP build,
so as to be able to do continuous integration for the
build of TSP, in a tool such as cruisecontrol  -->
<project name="tsp" default="build" basedir="..">

    <property name="build.dir" value="tsp_cc_build"/>
    <property name="tsp.dir" value=".."/>

    <macrodef name="cmake">
                <attribute name="flags" default=""/>
                <sequential>
                        <exec dir="${build.dir}" executable="cmake" failonerror="true">
                            <arg line="@{flags} ${tsp.dir}"/>
                        </exec>
                </sequential>
    </macrodef>

    <macrodef name="make">                
                <sequential>
                        <exec dir="${build.dir}" executable="make" failonerror="true"/>
                </sequential>
    </macrodef> 

    <macrodef name="cvs-update">
                <attribute name="workDir"/>
                <sequential>
                        <exec dir="@{workDir}" executable="cvs" failonerror="true">
                                <arg line="update -dP "/>
                        </exec>
                </sequential>
    </macrodef>

    <target name="build" depends="update">
        <antcall target="vanilla"/>
        <antcall target="xmlrpc"/>
    </target>

    <target name="vanilla" depends="clean">
        <cmake/>
        <make/>
    </target>

    <target name="xmlrpc" depends="clean">
        <cmake flags="-DBUILD_XMLRPC=ON"/>
        <make/>
    </target>

    <target name="clean">
        <delete dir="${build.dir}"/>
        <mkdir dir="${build.dir}"/>
    </target>

    <target name="update">
        <cvs-update workDir="${basedir}"/>
    </target>


</project><commit_msg>added cruise control conf file example<commit_after><!-- This a Ant build file whose sole purpose is to test 
both a complete vanilla TSP build, and an XMLRPC TSP build,
so as to be able to do continuous integration for the
build of TSP, in a tool such as cruisecontrol  -->
<project name="tsp" default="build" basedir="..">

    <property name="build.dir" value="tsp_cc_build"/>
    <property name="tsp.dir" value=".."/>

    <macrodef name="cmake">
                <attribute name="flags" default=""/>
                <sequential>
                        <exec dir="${build.dir}" executable="cmake" failonerror="true">
                            <arg line="@{flags} ${tsp.dir}"/>
                        </exec>
                </sequential>
    </macrodef>

    <macrodef name="make">                
                <sequential>
                        <exec dir="${build.dir}" executable="make" failonerror="true"/>
                </sequential>
    </macrodef> 

    <macrodef name="cvs-update">
                <attribute name="workDir"/>
                <sequential>
                        <exec dir="@{workDir}" executable="cvs" failonerror="true">
                                <arg line="update -dP "/>
                        </exec>
                </sequential>
    </macrodef>

    <target name="build" depends="update">
        <antcall target="vanilla"/>
        <antcall target="xmlrpc"/>
    </target>

    <target name="vanilla" depends="clean">
        <cmake/>
        <make/>
    </target>

    <target name="xmlrpc" depends="clean">
        <cmake flags="-DBUILD_XMLRPC=ON"/>
        <make/>
    </target>

    <target name="clean">
        <delete dir="${build.dir}"/>
        <mkdir dir="${build.dir}"/>
    </target>

    <target name="update">
        <cvs-update workDir="${basedir}"/>
    </target>


</project>


<!--
***********************************************
Exemple of Cruise control configuration file  :
***********************************************

<cruisecontrol>
    <project name="tsp" buildafterfailed="false">

        <listeners>
            <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
        </listeners>

        <bootstrappers>
            <cvsbootstrapper localWorkingCopy="projects/${project.name}/make" 
                             file="cc-build.xml" />
        </bootstrappers>

        <modificationset quietperiod="30">
            <cvs localWorkingCopy="projects/${project.name}"/>
        </modificationset>

        <schedule interval="300">
            <ant anthome="apache-ant-1.6.5" 
                buildfile="projects/${project.name}/make/cc-build.xml"
                 />
        </schedule>

        <log>
            <merge dir="projects/${project.name}/target/test-results"/>
        </log>

        <publishers>
            <htmlemail mailhost="smtp.blablablablabla.fr"
                reportsuccess="fixes"
                returnaddress="<EMAIL>"
                subjectprefix="[CruiseControl]"    
                skipusers="true" spamwhilebroken="true"
                xsldir="webapps/cruisecontrol/xsl" 
                css="webapps/cruisecontrol/css/cruisecontrol.css" 
                >
                <always address="<EMAIL>"/>
                <always address="<EMAIL>"/>
           </htmlemail>
        </publishers>
        
    </project>
</cruisecontrol>

-->
{'fraction_non_alphanumeric': 0.16509524725803348, 'fraction_numerical': 0.001539349624783529, 'mean_word_length': 1.7961269499731038, 'pattern_counts': {'":': 0, '<': 122, '<?xml version=': 0, '>': 122, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '1154363', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1392, 'n_words': 310}