<commit_before><project name="jQuery" default="jquery" basedir=".">

    <property description="Source Folder" name="SRC_DIR" value="src"  />
    <property description="Files for parsing etc." name="BUILD_DIR" value="build" />
    <property description="YUICompressor" name="YUICompressor" value="${BUILD_DIR}/yuicompressor-2.4.2.jar" />
	<loadfile description="Version to build" property="version" srcfile="version.txt" />

    <property description="Folder for jquery and min target" name="DIST_DIR" value="./dist" />

    <property name="JQ" value="${DIST_DIR}/jquery.js" />
    <property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" />
    <property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
	<loadfile property="version" srcfile="version.txt" />

    <target name="jquery" description="Main jquery build, concatenates source files and replaces @VERSION">
        <echo message="Building ${JQ}" />
        <mkdir dir="${DIST_DIR}" />
        <concat destfile="${JQ}">
            <fileset dir="${SRC_DIR}" includes="intro.js" />
            <fileset dir="${SRC_DIR}" includes="core.js" />
            <fileset dir="${SRC_DIR}" includes="support.js" />
            <fileset dir="${SRC_DIR}" includes="data.js" />
            <fileset dir="${SRC_DIR}" includes="queue.js" />
            <fileset dir="${SRC_DIR}" includes="event.js" />
            <fileset dir="${SRC_DIR}" includes="selector.js" />
            <fileset dir="${SRC_DIR}" includes="traversing.js" />
            <fileset dir="${SRC_DIR}" includes="attributes.js" />
            <fileset dir="${SRC_DIR}" includes="manipulation.js" />
            <fileset dir="${SRC_DIR}" includes="css.js" />
            <fileset dir="${SRC_DIR}" includes="ajax.js" />
            <fileset dir="${SRC_DIR}" includes="fx.js" />
            <fileset dir="${SRC_DIR}" includes="offset.js" />
            <fileset dir="${SRC_DIR}" includes="dimensions.js" />
            <fileset dir="${SRC_DIR}" includes="outro.js" />
        </concat>
    	<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
		<replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
        <echo message="${JQ} built." />
    </target>

    <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip"><commit_msg>Fixed ant build by cloning or pulling qunit and sizzle submodules, similar to the make build<commit_after><project name="jQuery" default="jquery" basedir=".">

    <property description="Source Folder" name="SRC_DIR" value="src"  />
    <property description="Files for parsing etc." name="BUILD_DIR" value="build" />
    <property description="YUICompressor" name="YUICompressor" value="${BUILD_DIR}/yuicompressor-2.4.2.jar" />
	<loadfile description="Version to build" property="version" srcfile="version.txt" />

    <property description="Folder for jquery and min target" name="DIST_DIR" value="./dist" />

    <property name="JQ" value="${DIST_DIR}/jquery.js" />
    <property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" />
    <property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
	<loadfile property="version" srcfile="version.txt" />
	<loadfile property="sizzle-exports" srcfile="src/sizzle-jquery.js" />
	
	<available property="qunit" file="test/qunit" />
	<available property="sizzle" file="src/sizzle" />
	
	<target name="qunit-clone" unless="qunit">
		<exec executable="git" outputproperty="git-qunit" >  
			<arg line="clone git://github.com/jquery/qunit.git test/qunit"/>  
		</exec>
		<echo message="git clone qunit: ${git-qunit}" />
	</target>
	<target name="qunit-pull" if="qunit">
		<exec executable="git" outputproperty="git-qunit" dir="test/qunit" >  
			<arg line="pull origin master"/>  
		</exec> 
		<echo message="git pull sizzle: ${git-qunit}" />
	</target>
	<target name="sizzle-clone" unless="sizzle">
		<exec executable="git" outputproperty="git-sizzle" >  
			<arg line="clone git://github.com/jeresig/sizzle.git src/sizzle"/>  
		</exec> 
		<echo message="git clone sizzle: ${git-sizzle}" />
	</target>
	<target name="sizzle-pull" if="sizzle">
		<exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >  
			<arg line="pull origin master"/>  
		</exec> 
		<echo message="git pull sizzle: ${git-sizzle}" />
	</target>

    <target name="jquery" depends="qunit-clone,qunit-pull,sizzle-clone,sizzle-pull" description="Main jquery build, concatenates source files and replaces @VERSION">
        <echo message="Building ${JQ}" />
    	<copy file="src/sizzle/sizzle.js" tofile="src/selector.js" overwrite="true" />
    	<replaceregexp match="// EXPOSE" replace="${sizzle-exports}" file="src/selector.js" />
        <mkdir dir="${DIST_DIR}" />
        <concat destfile="${JQ}">
            <fileset dir="${SRC_DIR}" includes="intro.js" />
            <fileset dir="${SRC_DIR}" includes="core.js" />
            <fileset dir="${SRC_DIR}" includes="support.js" />
            <fileset dir="${SRC_DIR}" includes="data.js" />
            <fileset dir="${SRC_DIR}" includes="queue.js" />
            <fileset dir="${SRC_DIR}" includes="event.js" />
            <fileset dir="${SRC_DIR}" includes="selector.js" />
            <fileset dir="${SRC_DIR}" includes="traversing.js" />
            <fileset dir="${SRC_DIR}" includes="attributes.js" />
            <fileset dir="${SRC_DIR}" includes="manipulation.js" />
            <fileset dir="${SRC_DIR}" includes="css.js" />
            <fileset dir="${SRC_DIR}" includes="ajax.js" />
            <fileset dir="${SRC_DIR}" includes="fx.js" />
            <fileset dir="${SRC_DIR}" includes="offset.js" />
            <fileset dir="${SRC_DIR}" includes="dimensions.js" />
            <fileset dir="${SRC_DIR}" includes="outro.js" />
        </concat>
    	<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
		<replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
        <echo message="${JQ} built." />
    </target>

    <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
{'fraction_non_alphanumeric': 0.1921022819226412, 'fraction_numerical': 0.0009710309111506716, 'mean_word_length': 3.6641509433962263, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 0, '>': 104, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '697399', 'n_tokens_mistral': 2007, 'n_tokens_neox': 1917, 'n_words': 391}